summaryrefslogtreecommitdiff
path: root/access.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 /access.c
parentc4fea82ff912c596e0e1e49218a67917be8df6df (diff)
downloadrsync-32f761755e2cfee243a1513c9ea9871586463fa6.tar.gz
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 'access.c')
-rw-r--r--access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/access.c b/access.c
index 050e8cc4..ff357480 100644
--- a/access.c
+++ b/access.c
@@ -38,7 +38,7 @@ static int match_address(char *addr, char *tok)
if (!addr || !*addr) return 0;
- if (!isdigit(tok[0])) return 0;
+ if (!isdigit(* (unsigned char *) tok)) return 0;
p = strchr(tok,'/');
if (p) *p = 0;