From: Ulrich Drepper Date: Mon, 7 Mar 2005 00:02:03 +0000 (+0000) Subject: * posix/bits/unistd.h (pread): Fix typo in __USE_FILE_OFFSET64 code. X-Git-Tag: cvs/fedora-glibc-20050319T1907~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20981676ad10f5d0d60eec38111e07b1bdb30b15;p=thirdparty%2Fglibc.git * posix/bits/unistd.h (pread): Fix typo in __USE_FILE_OFFSET64 code. --- diff --git a/ChangeLog b/ChangeLog index 549277146e6..c21451a53c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2005-03-06 Ulrich Drepper + * posix/bits/unistd.h (pread): Fix typo in __USE_FILE_OFFSET64 code. + * debug/recv_chk.c (__recv_chk): Always fail if request could overflow the buffer. * debug/recvfrom_chk.c (__recvfrom_chk): Likewise. diff --git a/posix/bits/unistd.h b/posix/bits/unistd.h index 0a391cfb511..26cb6641e90 100644 --- a/posix/bits/unistd.h +++ b/posix/bits/unistd.h @@ -39,7 +39,7 @@ extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, (__bos0 (buf) != (size_t) -1 \ && (!__builtin_constant_p (nbytes) || (nbytes) > __bos0 (buf)) \ ? __pread64_chk (fd, buf, nbytes, offset, __bos0 (buf)) \ - : pread (fd, buf, nbytes, offset)) + : pread64 (fd, buf, nbytes, offset)) # else # define pread(fd, buf, nbytes, offset) \ (__bos0 (buf) != (size_t) -1 \