Re: /proc/self

Theodore Y. Ts'o (tytso@MIT.EDU)
Wed, 16 Apr 1997 15:29:43 -0400


Date: Wed, 16 Apr 1997 13:09:08 -0400 (EDT)
From: Chris Arguin <cpa@hopper.unh.edu>

sprintf doesn't count the final null character. If you are going to
allocate space to copy the string, you will need that extra one.

readlink() shouldn't be returning the terminating NULL, nor counting it
in the size returned by the system call.

- Ted