From f99bb93e552820fe4d0ab67f01361c76712c19e7 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 11 Feb 2004 09:19:54 +0000 Subject: Cast "char" values to "guchar" before passing them to 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 --- packet-multipart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packet-multipart.c') 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 * Copyright 2004, Olivier Biot * - * $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 @@ -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++; -- cgit v1.2.3