diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-10-17 14:10:52 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-10-17 21:11:58 +0000 |
commit | 65f81046af298acd3688b279c9dbfba0cd65bb09 (patch) | |
tree | 0d08cb7fa2da82279fc30265b51fb65afab146e4 /wsutil | |
parent | 2f585cfc2562f8dd596367185eb661ce65f57806 (diff) | |
download | wireshark-65f81046af298acd3688b279c9dbfba0cd65bb09.tar.gz |
Don't use ctype.h routines.
That avoids locale dependency and handles possibly-signed chars (which
we weren't doing before).
Change-Id: I189222eff624ad2d2e960bc0b69f3f22d35f351f
Reviewed-on: https://code.wireshark.org/review/4787
Reviewed-by: Guy Harris <guy@alum.mit.edu>
(cherry picked from commit 5fc398c3286fda408ad5cd4b5834d1b2778db86a)
Reviewed-on: https://code.wireshark.org/review/4788
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/str_util.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/wsutil/str_util.c b/wsutil/str_util.c index 446f433a18..1b5b0d595c 100644 --- a/wsutil/str_util.c +++ b/wsutil/str_util.c @@ -25,8 +25,6 @@ #include <glib.h> #include "str_util.h" -#include <ctype.h> - int ws_xton(char ch) { @@ -103,7 +101,7 @@ isdigit_string(guchar *str) /* Loop until we reach the end of the string (a null) */ for(pos = 0; str[pos] != '\0'; pos++){ - if(!isdigit(str[pos])){ + if(!g_ascii_isdigit(str[pos])){ /* The string contains a non-digit character */ return FALSE; } |