summaryrefslogtreecommitdiff
path: root/debug/readlink_chk.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug/readlink_chk.c')
-rw-r--r--debug/readlink_chk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug/readlink_chk.c b/debug/readlink_chk.c
index d8d61dc699..ac18ee2c29 100644
--- a/debug/readlink_chk.c
+++ b/debug/readlink_chk.c
@@ -31,8 +31,8 @@ __readlink_chk (const char *path, void *buf, size_t len, size_t buflen)
__chk_fail ();
#ifdef HAVE_INLINED_SYSCALLS
- return INLINE_SYSCALL (readlink, 3, path, buf, MIN (len, buflen + 1));
+ return INLINE_SYSCALL (readlink, 3, path, buf, len);
#else
- return __readlink (path, buf, MIN (len, buflen + 1));
+ return __readlink (path, buf, len);
#endif
}