mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Ensure that all uses of <ctype.h> functions are applied to unsigned-char
values, whether the local char type is signed or not. This is necessary for portability. Per discussion on pghackers around 9/16/00.
This commit is contained in:
@ -6,7 +6,7 @@ strtoupper(char *string)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < strlen(string); i++)
|
||||
string[i] = toupper(string[i]);
|
||||
string[i] = toupper((unsigned char) string[i]);
|
||||
return string;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user