michael_d in #1849 writes: The getcwd() implementation in the absence of a getcwd...
commit434de2bfe0a74d4efc578e4da623d4ba783e9d8a
authorMike Frysinger <vapier@gentoo.org>
Sat, 5 Jan 2008 05:32:09 +0000 (5 05:32 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 5 Jan 2008 05:32:09 +0000 (5 05:32 -0000)
tree0e2eafbf40c883ebb191fa04ef17630bc3b76ac3
parentea5081a739a29ba397acd07c5be663f67225145b
michael_d in #1849 writes: The getcwd() implementation in the absence of a getcwd syscall has an off-by-one allocation bug. As a result, sometimes the returned string has garbage at the end.
libc/sysdeps/linux/common/getcwd.c