aboutsummaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-03-01 01:45:27 +0000
committerUlrich Drepper <drepper@redhat.com>2005-03-01 01:45:27 +0000
commit9db670f07a8fc5db98c7faa2bbe56d5040058234 (patch)
tree8dd9436ff5b1ab28a8193420bf0087b421684e08 /debug
parenta0e3c9e2e8ec0147a54cbc2f628c345f9f7ddfb7 (diff)
downloadglibc-9db670f07a8fc5db98c7faa2bbe56d5040058234.zip
glibc-9db670f07a8fc5db98c7faa2bbe56d5040058234.tar.gz
glibc-9db670f07a8fc5db98c7faa2bbe56d5040058234.tar.bz2
* csu/Makefile: Use printf instead of echo for some shells.
Diffstat (limited to 'debug')
-rw-r--r--debug/pread64_chk.c2
-rw-r--r--debug/pread_chk.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/debug/pread64_chk.c b/debug/pread64_chk.c
index daea1d7..93e5151 100644
--- a/debug/pread64_chk.c
+++ b/debug/pread64_chk.c
@@ -26,5 +26,5 @@ __pread64_chk (int fd, void *buf, size_t nbytes, off64_t offset, size_t buflen)
if (nbytes > buflen)
__chk_fail ();
- return __pread64 (fd, buf, offset, MIN (nbytes, buflen + 1));
+ return __pread64 (fd, buf, offset, nbytes);
}
diff --git a/debug/pread_chk.c b/debug/pread_chk.c
index 483b5d0..24c1310 100644
--- a/debug/pread_chk.c
+++ b/debug/pread_chk.c
@@ -26,5 +26,5 @@ __pread_chk (int fd, void *buf, size_t nbytes, off_t offset, size_t buflen)
if (nbytes > buflen)
__chk_fail ();
- return __pread (fd, buf, offset, MIN (nbytes, buflen + 1));
+ return __pread (fd, buf, offset, nbytes);
}