diff options
-rw-r--r-- | lib/libc/gen/getcwd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gen/getcwd.c b/lib/libc/gen/getcwd.c index d3f5814..dfa482a 100644 --- a/lib/libc/gen/getcwd.c +++ b/lib/libc/gen/getcwd.c @@ -154,6 +154,7 @@ getcwd(pt, size) /* Add trailing slash for next directory. */ *bup++ = '/'; + *bup = '\0'; /* * If it's a mount point, have to stat each element because |