aboutsummaryrefslogtreecommitdiffstats
path: root/epan/uat.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-10-17 16:10:53 -0700
committerGuy Harris <guy@alum.mit.edu>2014-10-17 23:11:18 +0000
commit033f096ee909b63c0692b80416797f743940d054 (patch)
tree0ec827ec1bfa5a7893c19e81f27d782797a66644 /epan/uat.h
parent344c2bbb5e2a23764fe21adeaf2439d267960a96 (diff)
Don't use ctype.h routines.
That avoids locale dependency and handles possibly-signed chars (which we weren't always doing before). Change-Id: Ieceb93029252f646397b6488f2df8a57c6d2a23d Reviewed-on: https://code.wireshark.org/review/4794 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/uat.h')
-rw-r--r--epan/uat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/uat.h b/epan/uat.h
index b23183a32e..3495579f96 100644
--- a/epan/uat.h
+++ b/epan/uat.h
@@ -354,7 +354,7 @@ CHK_STR_IS_DECL(isxdigit);
gboolean uat_fld_chk_str_ ## what (void* UNUSED_PARAMETER(u1), const char* strptr, guint len, const void* UNUSED_PARAMETER(u2), const void* UNUSED_PARAMETER(u3), const char** err) { \
guint i; for (i=0;i<len;i++) { \
char c = strptr[i]; \
- if (! what((int)c)) { \
+ if (! g_ascii_ ## what(c)) { \
*err = ep_strdup_printf("invalid char pos=%d value=%.2x",i,c); return FALSE; } } \
*err = NULL; return TRUE; }