diff options
author | Guy Harris <gharris@steve.local> | 2009-07-02 12:00:55 -0700 |
---|---|---|
committer | Guy Harris <gharris@steve.local> | 2009-07-02 12:00:55 -0700 |
commit | 7c567e9ae828fc6866cf9f0bd91c9e7f05f51b0f (patch) | |
tree | 41879a6b11f54545133a8129219f7a54799d20c1 /missing | |
parent | 02ae5549fcbb48f3a29bdedff725751b7fff7b4c (diff) | |
download | tcpdump-7c567e9ae828fc6866cf9f0bd91c9e7f05f51b0f.tar.gz |
Cast argument to isdigit to unsigned char, so if the characters 8th bit
is set, it doesn't get treated as a negative number.
Diffstat (limited to 'missing')
-rw-r--r-- | missing/getaddrinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/missing/getaddrinfo.c b/missing/getaddrinfo.c index f59b2c4e..d74d5bca 100644 --- a/missing/getaddrinfo.c +++ b/missing/getaddrinfo.c @@ -278,7 +278,7 @@ str_isnumber(p) { char *q = (char *)p; while (*q) { - if (! isdigit(*q)) + if (! isdigit((unsigned char)*q)) return NO; q++; } |