diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/getcwd.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/getcwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/getcwd.c b/sysdeps/unix/sysv/linux/getcwd.c index 7c27426..6725d16 100644 --- a/sysdeps/unix/sysv/linux/getcwd.c +++ b/sysdeps/unix/sysv/linux/getcwd.c @@ -143,7 +143,7 @@ __getcwd (char *buf, size_t size) { if (path[0] == '/') { - if (n >= alloc_size - 1) + if ((size_t) n >= alloc_size - 1) { if (buf == NULL) free (path); |