Trent Mick's Win64 changes: size_t vs. int or long; also some overflow

tests.
This commit is contained in:
Guido van Rossum 2000-06-28 22:07:35 +00:00
parent 6f2a5efec9
commit 582acece2e
9 changed files with 40 additions and 21 deletions

View file

@ -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;
}