diff options
Diffstat (limited to 'stdlib/bits/stdlib.h')
-rw-r--r-- | stdlib/bits/stdlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/bits/stdlib.h b/stdlib/bits/stdlib.h index 067115e..ccacbdf 100644 --- a/stdlib/bits/stdlib.h +++ b/stdlib/bits/stdlib.h @@ -42,7 +42,7 @@ __NTH (realpath (const char *__restrict __name, char *__restrict __resolved)) return __realpath_alias (__name, __resolved); #if defined _LIBC_LIMITS_H_ && defined PATH_MAX - if (__glibc_unsafe_len (sz, sizeof (char), PATH_MAX)) + if (__glibc_unsafe_len (PATH_MAX, sizeof (char), sz)) return __realpath_chk_warn (__name, __resolved, sz); #endif return __realpath_chk (__name, __resolved, sz); |