Suppress a warning on NetBSD

This commit is contained in:
Stephane Bortzmeyer 2007-03-10 20:42:39 +00:00
parent 9b25a0ad02
commit 2f01006a35

View File

@ -43,7 +43,7 @@ to_upper(char *input)
char *result; char *result;
result = (char *) malloc(strlen(input)); result = (char *) malloc(strlen(input));
for (c = 0; c < strlen(input); c++) for (c = 0; c < strlen(input); c++)
result[c] = toupper(input[c]); result[c] = toupper((int)input[c]);
result[strlen(input)] = '\0'; result[strlen(input)] = '\0';
return result; return result;
} }