summaryrefslogtreecommitdiff
path: root/contrib/dbase/dbf2pg.c
diff options
context:
space:
mode:
authorTom Lane2001-12-30 23:09:42 +0000
committerTom Lane2001-12-30 23:09:42 +0000
commitee051baeac9dce2dbfd5da50da21ae425b548c43 (patch)
treee1e24cb9f15642b9359eaf9bf6f8940bf9f76efc /contrib/dbase/dbf2pg.c
parente7d9a6bf630e8784fc1723d138e4e4e973550017 (diff)
Make sure that all <ctype.h> routines are called with unsigned char
values; it's not portable to call them with signed chars. I recall doing this for the last release, but a few more uncasted calls have snuck in.
Diffstat (limited to 'contrib/dbase/dbf2pg.c')
-rw-r--r--contrib/dbase/dbf2pg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/dbase/dbf2pg.c b/contrib/dbase/dbf2pg.c
index a635e09122c..038c2b5aba2 100644
--- a/contrib/dbase/dbf2pg.c
+++ b/contrib/dbase/dbf2pg.c
@@ -78,7 +78,7 @@ isinteger(char *buff)
i++;
continue;
}
- if (!isdigit((int) *i))
+ if (!isdigit((unsigned char) *i))
return 0;
i++;
}
@@ -90,7 +90,7 @@ strtoupper(char *string)
{
while (*string != '\0')
{
- *string = toupper(*string);
+ *string = toupper((unsigned char) *string);
string++;
}
}
@@ -100,7 +100,7 @@ strtolower(char *string)
{
while (*string != '\0')
{
- *string = tolower(*string);
+ *string = tolower((unsigned char) *string);
string++;
}
}