aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-01-02 00:23:50 +0000
committerGuy Harris <guy@alum.mit.edu>2005-01-02 00:23:50 +0000
commit7e58bd88ca4991979bf063ef8eb94c57ed97773a (patch)
tree3d5917fa6d67eea7ecd45db197456896629cbc4f /plugins
parent90c434d5ac86be6478160ca2457382799c9596de (diff)
Cast the values passed to the <ctype.h> macros so as to avoid
sign-extending 8-bit characters. svn path=/trunk/; revision=12922
Diffstat (limited to 'plugins')
-rw-r--r--plugins/asn1/packet-asn1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c
index 2c66bba046..9f78479d52 100644
--- a/plugins/asn1/packet-asn1.c
+++ b/plugins/asn1/packet-asn1.c
@@ -4802,7 +4802,7 @@ getPDUenum(PDUprops *props, guint offset, guint cls, guint tag, guint value)
/* Routines to handle parsing a list of ports */
/* * * * * * * * * * * * * * * * * * * * * * * * */
-#define SKIPWHITE(_s) { while(isspace(*(_s))) { (_s)++; } }
+#define SKIPWHITE(_s) { while(isspace((guchar)*(_s))) { (_s)++; } }
/* insert error text in front of spec
* with a delimeter we can recognize on next attempt
@@ -4875,7 +4875,7 @@ static GSList *parse_port_range(gchar *s, int len)
SKIPWHITE(es);
- if (isdigit(*es))
+ if (isdigit((guchar)*es))
continue; /* a missig comma is OK */
switch(*es++) {