From 033f096ee909b63c0692b80416797f743940d054 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 17 Oct 2014 16:10:53 -0700 Subject: 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 --- epan/uat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'epan/uat.c') diff --git a/epan/uat.c b/epan/uat.c index 48da1c214b..076ac48e5a 100644 --- a/epan/uat.c +++ b/epan/uat.c @@ -30,7 +30,6 @@ #include #include #include -#include #include #include @@ -463,7 +462,7 @@ gboolean uat_fld_chk_oid(void* u1 _U_, const char* strptr, guint len, const void } for(i = 0; i < len; i++) - if(!(isdigit(strptr[i]) || strptr[i] == '.')) { + if(!(g_ascii_isdigit(strptr[i]) || strptr[i] == '.')) { *err = "Only digits [0-9] and \".\" allowed in an OID"; break; } @@ -647,7 +646,7 @@ char* uat_unesc(const char* si, guint in_len, guint* len_p) { char c1 = *(s+1); char c0 = *(s+2); - if (isxdigit((guchar)c1) && isxdigit((guchar)c0)) { + if (g_ascii_isxdigit(c1) && g_ascii_isxdigit(c0)) { *(p++) = (ws_xton(c1) * 0x10) + ws_xton(c0); s += 2; } else { -- cgit v1.2.3