Try to fix ctype issues by always calling these functions as
[rsync.git] / access.c
index 050e8cc4f5b68905262527faad249aa4e70e359f..ff357480c2910462e6f527660c67cff6ceac973c 100644 (file)
--- 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;