Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The readlink() function reads where a link points to. It makes no effort to NULL null-terminate its second argument, buffer. Instead, it just returns the number of characters it has written.

...

If len is equal to sizeof(buf), the NULL null terminator will be written one byte past the end of buf.

...