aboutsummaryrefslogtreecommitdiffstats
path: root/loadparm.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-04-11 02:25:53 +0000
committerMartin Pool <mbp@samba.org>2002-04-11 02:25:53 +0000
commit32f761755e2cfee243a1513c9ea9871586463fa6 (patch)
treeb9b71aa4a423961223f0715756c4c4d81e24afc2 /loadparm.c
parentc4fea82ff912c596e0e1e49218a67917be8df6df (diff)
downloadandroid_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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loadparm.c b/loadparm.c
index 7bd4483c..d559b117 100644
--- a/loadparm.c
+++ b/loadparm.c
@@ -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++;