aboutsummaryrefslogtreecommitdiffstats
path: root/packet-multipart.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-02-11 09:19:54 +0000
committerGuy Harris <guy@alum.mit.edu>2004-02-11 09:19:54 +0000
commitf99bb93e552820fe4d0ab67f01361c76712c19e7 (patch)
treef5dc44d122e67563e38b5a49fd432f33eaf63b69 /packet-multipart.c
parent8177fbd5503cf1698a469e763766f81fa75e8bf7 (diff)
Cast "char" values to "guchar" before passing them to <ctype.h> macros,
so that characters with the 8th bit set don't get sign-extended and cause the macros not to return the right answer. svn path=/trunk/; revision=10036
Diffstat (limited to 'packet-multipart.c')
-rwxr-xr-xpacket-multipart.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-multipart.c b/packet-multipart.c
index 75de2696ba..f303354dce 100755
--- a/packet-multipart.c
+++ b/packet-multipart.c
@@ -3,7 +3,7 @@
* Copyright 2004, Anders Broman <anders.broman[at]ericsson.com>
* Copyright 2004, Olivier Biot <olivier.biot[at]siemens.com>
*
- * $Id: packet-multipart.c,v 1.6 2004/02/06 01:07:51 obiot Exp $
+ * $Id: packet-multipart.c,v 1.7 2004/02/11 09:19:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -318,7 +318,7 @@ get_multipart_info(packet_info *pinfo)
if (p == NULL)
return NULL;
p++; /* Skip semicolon */
- while ((*p) && isspace(*p))
+ while ((*p) && isspace((guchar)*p))
p++; /* Skip white space */
}
start = p + 9;
@@ -347,7 +347,7 @@ get_multipart_info(packet_info *pinfo)
*/
p = start;
while (*p) {
- if (*p == ';' || isspace(*p))
+ if (*p == ';' || isspace((guchar)*p))
break;
p++;
len++;