From 10276efd489000fb243ce1d2235fbcc4f0fb6002 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 24 Oct 2007 02:12:46 +0000 Subject: [PATCH] Make sure characters aren't sign-extended before being handed to isalnum(). svn path=/trunk/; revision=23254 --- epan/dissectors/packet-diameter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }