mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +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:
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.197 2000/11/30 23:20:51 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.198 2000/12/03 20:45:34 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@@ -1807,12 +1807,12 @@ split_opts(char **argv, int *argcp, char *s)
|
||||
{
|
||||
while (s && *s)
|
||||
{
|
||||
while (isspace((int) *s))
|
||||
while (isspace((unsigned char) *s))
|
||||
++s;
|
||||
if (*s == '\0')
|
||||
break;
|
||||
argv[(*argcp)++] = s;
|
||||
while (*s && !isspace((int) *s))
|
||||
while (*s && !isspace((unsigned char) *s))
|
||||
++s;
|
||||
if (*s)
|
||||
*s++ = '\0';
|
||||
|
||||
Reference in New Issue
Block a user