diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-10-17 13:37:11 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-10-17 20:37:42 +0000 |
commit | 5bfde7c6386b56db80fec85e2ca7dc1d271b461c (patch) | |
tree | 7a1e391e46bf9720719ed81ea504b193a66901a8 /wiretap/dct3trace.c | |
parent | 35a9b9813879fff308c838f8a4351abfeafa8a4a (diff) |
Don't use ctype.h routines.
That avoids locale dependency and handles possibly-signed chars (which
we weren't doing before).
Change-Id: I70f3d993c9a8fbf870901f12b430d733968c3fa8
Reviewed-on: https://code.wireshark.org/review/4781
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/dct3trace.c')
-rw-r--r-- | wiretap/dct3trace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wiretap/dct3trace.c b/wiretap/dct3trace.c index 873d96485b..6f35fb9416 100644 --- a/wiretap/dct3trace.c +++ b/wiretap/dct3trace.c @@ -33,7 +33,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <ctype.h> /* @@ -85,7 +84,7 @@ static gboolean dct3trace_seek_read(wtap *wth, gint64 seek_off, static int hc2b(unsigned char hex) { - hex = tolower(hex); + hex = g_ascii_tolower(hex); if ((hex >= '0') && (hex <= '9')) return hex - '0'; if ((hex >= 'a') && (hex <= 'f')) |