mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +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:
@@ -1,6 +1,6 @@
|
||||
/*-------------------------------------------------------
|
||||
*
|
||||
* $Id: Pg.xs,v 1.15 2000/10/24 17:00:00 tgl Exp $ with patch for NULs
|
||||
* $Id: Pg.xs,v 1.16 2000/12/03 20:45:40 tgl Exp $ with patch for NULs
|
||||
*
|
||||
* Copyright (c) 1997, 1998 Edmund Mergl
|
||||
*
|
||||
@@ -215,7 +215,7 @@ PQconnectdb(conninfo)
|
||||
}
|
||||
} else {
|
||||
while (*ptr && *ptr != ' ' && *ptr != '\t') {
|
||||
*ptr = tolower(*ptr);
|
||||
*ptr = tolower((unsigned char) *ptr);
|
||||
ptr++;
|
||||
}
|
||||
}
|
||||
@@ -734,7 +734,7 @@ connectdb(conninfo)
|
||||
}
|
||||
} else {
|
||||
while (*ptr && *ptr != ' ' && *ptr != '\t') {
|
||||
*ptr = tolower(*ptr);
|
||||
*ptr = tolower((unsigned char) *ptr);
|
||||
ptr++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user