diff options
| author | Martin Pool <mbp@samba.org> | 2002-04-11 02:25:53 +0000 |
|---|---|---|
| committer | Martin Pool <mbp@samba.org> | 2002-04-11 02:25:53 +0000 |
| commit | 32f761755e2cfee243a1513c9ea9871586463fa6 (patch) | |
| tree | b9b71aa4a423961223f0715756c4c4d81e24afc2 /loadparm.c | |
| parent | c4fea82ff912c596e0e1e49218a67917be8df6df (diff) | |
| download | android_external_rsync-32f761755e2cfee243a1513c9ea9871586463fa6.tar.gz android_external_rsync-32f761755e2cfee243a1513c9ea9871586463fa6.tar.bz2 android_external_rsync-32f761755e2cfee243a1513c9ea9871586463fa6.zip | |
Try to fix ctype issues by always calling these functions as
if (!isdigit(* (unsigned char *) p)) {
so that the argument is always in the range of unsigned char when
coerced to an int.
(See digit 1.)
Diffstat (limited to 'loadparm.c')
| -rw-r--r-- | loadparm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -479,11 +479,11 @@ static int strwicmp(char *psz1, char *psz2) /* sync the strings on first non-whitespace */ while (1) { - while (isspace((int) *psz1)) + while (isspace(* (unsigned char *) psz1)) psz1++; - while (isspace((int) *psz2)) + while (isspace(* (unsigned char *) psz2)) psz2++; - if (toupper((int) *psz1) != toupper((int) *psz2) + if (toupper(* (unsigned char *) psz1) != toupper(* (unsigned char *) psz2) || *psz1 == '\0' || *psz2 == '\0') break; psz1++; |
