diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-10-19 16:00:41 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-10-19 23:01:15 +0000 |
commit | 4d6b3db5d4edc8743151c599330441ad2f943094 (patch) | |
tree | 544a3ccad61508187720e97f20d9717772efa7da /plugins | |
parent | 2b6c267a57fac77595b8e8b36490c12064d5649c (diff) |
Eliminate a use of a ctype.h function.
That way, we avoid locale-dependent behavior.
Change-Id: I429fde961dc7cb61013756a663d6cd511f19ca70
Reviewed-on: https://code.wireshark.org/review/4845
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wimaxasncp/packet-wimaxasncp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/wimaxasncp/packet-wimaxasncp.c b/plugins/wimaxasncp/packet-wimaxasncp.c index 12f7aa5c56..c9b223ba93 100644 --- a/plugins/wimaxasncp/packet-wimaxasncp.c +++ b/plugins/wimaxasncp/packet-wimaxasncp.c @@ -30,7 +30,6 @@ #include <stdio.h> #include <stdlib.h> -#include <ctype.h> #include <glib.h> @@ -2442,7 +2441,7 @@ static char *alnumerize( for ( ; (c = *r); ++r) { - if (isalnum((unsigned char)c) || c == '_' || c == '.') + if (g_ascii_isalnum(c) || c == '_' || c == '.') { /* These characters are fine - copy them */ *(w++) = c; |