diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-10-24 02:12:46 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-10-24 02:12:46 +0000 |
commit | 10276efd489000fb243ce1d2235fbcc4f0fb6002 (patch) | |
tree | 7b29005732d3b18de9576f21903681c9fc387bef /epan/dissectors/packet-diameter.c | |
parent | b40d397b1690391f5e8338542af898d120340ca3 (diff) |
Make sure characters aren't sign-extended before being handed to
isalnum().
svn path=/trunk/; revision=23254
Diffstat (limited to 'epan/dissectors/packet-diameter.c')
-rw-r--r-- | epan/dissectors/packet-diameter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-diameter.c b/epan/dissectors/packet-diameter.c index 0d22a966bd..321cefd631 100644 --- a/epan/dissectors/packet-diameter.c +++ b/epan/dissectors/packet-diameter.c @@ -743,7 +743,7 @@ static char* alnumerize(char* name) { char c; for (;(c = *r); r++) { - if (isalnum(c) || c == '_' || c == '-' || c == '.') { + if (isalnum((unsigned char)c) || c == '_' || c == '-' || c == '.') { *(w++) = c; } } |