summaryrefslogtreecommitdiff
path: root/debug/pread_chk.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug/pread_chk.c')
-rw-r--r--debug/pread_chk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/pread_chk.c b/debug/pread_chk.c
index cf4f9f203c..702fddaaa3 100644
--- a/debug/pread_chk.c
+++ b/debug/pread_chk.c
@@ -26,6 +26,6 @@ __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, nbytes);
+ return __pread (fd, buf, nbytes, offset);
}
#endif