diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-10-16 23:41:29 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-10-17 06:41:58 +0000 |
commit | 63ab36be9266f79d92ac37e632299c8f0e2244f1 (patch) | |
tree | 37e3a280eb2a318c792ee01d39e6f69d438ba5df /ui/time_shift.c | |
parent | 23b233d74185d5fb7721a4c4d97d150312c8e3e9 (diff) | |
download | wireshark-63ab36be9266f79d92ac37e632299c8f0e2244f1.tar.gz |
Don't use <ctype.h> macros, and eliminate an include of <ctype.h>.
This avoids locale-dependent tests, and fixes cases where we passed
signed char values to those macros (which is not safe with char being
signed, as it is on most, but not all, platforms).
Change-Id: Iea962cd7e4dfaf33c3c873ba43814cc6ed298d94
Reviewed-on: https://code.wireshark.org/review/4764
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/time_shift.c')
-rw-r--r-- | ui/time_shift.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/time_shift.c b/ui/time_shift.c index 177a11b935..3363c50f40 100644 --- a/ui/time_shift.c +++ b/ui/time_shift.c @@ -25,7 +25,6 @@ #include <stdio.h> #include <string.h> -#include <ctype.h> #include <math.h> #include <glib.h> @@ -138,7 +137,7 @@ time_string_parse(const gchar *time_text, int *year, int *month, int *day, gbool return "Unable to convert time."; /* strip whitespace */ - while (isspace(pts[0])) + while (g_ascii_isspace(pts[0])) ++pts; if (year && month && day) { |