diff options
Diffstat (limited to 'Python/getcwd.c')
-rw-r--r-- | Python/getcwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getcwd.c b/Python/getcwd.c index e720c99..7005869 100644 --- a/Python/getcwd.c +++ b/Python/getcwd.c @@ -62,7 +62,7 @@ getcwd(buf, size) return NULL; } ret = getwd(localbuf); - if (ret != NULL && strlen(localbuf) >= size) { + if (ret != NULL && strlen(localbuf) >= (size_t)size) { errno = ERANGE; return NULL; } |