1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-09-11 12:10:50 +03:00

* posix/bits/unistd.h (pread): Fix typo in __USE_FILE_OFFSET64 code.

This commit is contained in:
Ulrich Drepper
2005-03-07 00:02:03 +00:00
parent 84c33ccbbe
commit 20981676ad
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
2005-03-06 Ulrich Drepper <drepper@redhat.com>
* 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.

View File

@@ -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 \