diff options
Diffstat (limited to 'src/libndb')
-rw-r--r-- | src/libndb/ipattr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libndb/ipattr.c b/src/libndb/ipattr.c index d23d5ee0..70f3873c 100644 --- a/src/libndb/ipattr.c +++ b/src/libndb/ipattr.c @@ -15,11 +15,11 @@ ipattr(char *name) for(p = name; *p; p++){ c = *p; - if(isdigit(c)) + if(isdigit((uchar)c)) continue; - if(isxdigit(c)) + if(isxdigit((uchar)c)) hex = 1; - else if(isalpha(c) || c == '-') + else if(isalpha((uchar)c) || c == '-') alpha = 1; else if(c == '.') dot = 1; |