aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/getcwd.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-09 10:14:17 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-09 10:14:17 +0000
commit73237de3761836016f67a10121ecc97a5d45cac4 (patch)
tree10145b7db278593b3becc915b147c5566840c0ae /sysdeps/unix/sysv/linux/getcwd.c
parent8d88d9f8aa759acc1d0b3919fa6080bb35b0f991 (diff)
downloadglibc-73237de3761836016f67a10121ecc97a5d45cac4.tar
glibc-73237de3761836016f67a10121ecc97a5d45cac4.tar.gz
glibc-73237de3761836016f67a10121ecc97a5d45cac4.tar.bz2
glibc-73237de3761836016f67a10121ecc97a5d45cac4.zip
Update.
1998-04-08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * configure.in: Add new option --enable-force-install. Substitute force_install. * config.make.in (force-install): Set from configure. * Makerules (force-install): New phony target. * Makeconfig (+force): New variable. * Makefile: Use it in dependency list of installation targets. * db/Makefile: Likewise. * db2/Makefile: Likewise. * elf/Makefile: Likewise. * hurd/Makefile: Likewise. * iconv/Makefile: Likewise. * iconvdata/Makefile: Likewise. * intl/Makefile: Likewise. * localedata/Makefile: Likewise. * login/Makefile: Likewise. * po/Makefile: Likewise. * sunrpc/Makefile: Likewise. * sysdeps/mach/hurd/Makefile: Likewise. * sysdeps/standalone/i386/force_cpu386/Makefile: Likewise. * sysdeps/unix/sysv/linux/Makefile: Likewise. * timezone/Makefile: Likewise. 1998-04-08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * sysdeps/unix/sysv/linux/getcwd.c: Use PATH_MAX as default alloc_size. Pass return value of getcwd syscall to realloc. 1998-04-08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * manual/socket.texi: Spelling fixes. 1998-04-08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * elf/dl-load.c (print_search_path): Remove unused variable.
Diffstat (limited to 'sysdeps/unix/sysv/linux/getcwd.c')
-rw-r--r--sysdeps/unix/sysv/linux/getcwd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/getcwd.c b/sysdeps/unix/sysv/linux/getcwd.c
index b34960eac9..19a2c0f257 100644
--- a/sysdeps/unix/sysv/linux/getcwd.c
+++ b/sysdeps/unix/sysv/linux/getcwd.c
@@ -64,7 +64,7 @@ __getcwd (char *buf, size_t size)
return NULL;
}
- alloc_size = PATH_MAX + 1;
+ alloc_size = PATH_MAX;
}
if (buf != NULL)
@@ -88,9 +88,9 @@ __getcwd (char *buf, size_t size)
{
if (buf == NULL)
{
- buf = realloc (path, strlen (path) + 1);
+ buf = realloc (path, (size_t) retval);
if (buf == NULL)
- /* `relloc' failed but we still have the original string. */
+ /* `realloc' failed but we still have the original string. */
buf = path;
}
return buf;