diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-07-23 10:24:43 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-07-23 10:24:43 +0200 |
commit | 0eff06353f0b177646a9aa264c5a530546f0ccae (patch) | |
tree | 6fd034ec94bda5c36c147162882ae8db80f6213f /lib/canonicalize-lgpl.c | |
parent | 662cd06405c078f7b9a2ab1cbab9f36131269979 (diff) | |
download | gnulib-0eff06353f0b177646a9aa264c5a530546f0ccae.tar.gz |
* lib/canonicalize-lgpl.c (__realpath): readlink can write too
much into the buffer on platforms without PATH_MAX.
Diffstat (limited to 'lib/canonicalize-lgpl.c')
-rw-r--r-- | lib/canonicalize-lgpl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/canonicalize-lgpl.c b/lib/canonicalize-lgpl.c index 80bef72c16..3aaa310ecd 100644 --- a/lib/canonicalize-lgpl.c +++ b/lib/canonicalize-lgpl.c @@ -260,7 +260,7 @@ __realpath (const char *name, char *resolved) goto error; } - n = __readlink (rpath, buf, path_max); + n = __readlink (rpath, buf, path_max - 1); if (n < 0) { int saved_errno = errno; |