mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +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:
@ -550,7 +550,7 @@ static void _PrintTocData(ArchiveHandle* AH, TocEntry* te, RestoreOptions *ropt)
|
||||
/* Get a copy of the COPY statement and clean it up */
|
||||
tmpCopy = strdup(te->copyStmt);
|
||||
for (i=0 ; i < strlen(tmpCopy) ; i++)
|
||||
tmpCopy[i] = tolower(tmpCopy[i]);
|
||||
tmpCopy[i] = tolower((unsigned char) tmpCopy[i]);
|
||||
|
||||
/*
|
||||
* This is very nasty; we don't know if the archive used WITH OIDS, so
|
||||
|
Reference in New Issue
Block a user