diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-04-02 17:59:59 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-04-02 17:59:59 +0000 |
commit | 6c7a57538a284d495e42c9e89e6a3248b41708ce (patch) | |
tree | 29f404e9a176e688905ea0c109bc92ebfc24c227 /sysdeps/unix/sysv/linux/getcwd.c | |
parent | 7cd67fd89e7e0c4184508399d46490100ff29419 (diff) | |
download | glibc-6c7a57538a284d495e42c9e89e6a3248b41708ce.tar.gz glibc-6c7a57538a284d495e42c9e89e6a3248b41708ce.tar.xz glibc-6c7a57538a284d495e42c9e89e6a3248b41708ce.zip |
[BZ #2418]
2006-04-02 Ulrich Drepper <drepper@redhat.com> [BZ #2418] * sysdeps/unix/sysv/linux/bits/socket.h: Use larger of PATH_MAX and page size when allocating buffer.
Diffstat (limited to 'sysdeps/unix/sysv/linux/getcwd.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/getcwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/getcwd.c b/sysdeps/unix/sysv/linux/getcwd.c index 1a308ca38f..911d85f43d 100644 --- a/sysdeps/unix/sysv/linux/getcwd.c +++ b/sysdeps/unix/sysv/linux/getcwd.c @@ -87,7 +87,7 @@ __getcwd (char *buf, size_t size) return NULL; } - alloc_size = PATH_MAX; + alloc_size = MAX (PATH_MAX, __getpagesize ()); } if (buf == NULL) |