Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: someone pointed out that the description of the 1st NCCE can read as "both strncpy() and strncat() do not guarantee null-termination." I added "in case of strncpy()".

...

The standard functions strncpy() and strncat() copy a specified number of characters n from a source string to a destination array. If In case of strncpy(), if there is no null character in the first n characters of the source array, the result will not be null-terminated and any remaining characters are truncated.

...