summaryrefslogtreecommitdiff
path: root/ui/recent.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-10-16 23:41:29 -0700
committerGuy Harris <guy@alum.mit.edu>2014-10-17 06:41:58 +0000
commit63ab36be9266f79d92ac37e632299c8f0e2244f1 (patch)
tree37e3a280eb2a318c792ee01d39e6f69d438ba5df /ui/recent.c
parent23b233d74185d5fb7721a4c4d97d150312c8e3e9 (diff)
downloadwireshark-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/recent.c')
-rw-r--r--ui/recent.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/recent.c b/ui/recent.c
index 45193bf95c..b8eeda637f 100644
--- a/ui/recent.c
+++ b/ui/recent.c
@@ -26,7 +26,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
#include <errno.h>
#include "capture_opts.h"
@@ -1183,7 +1182,7 @@ recent_set_arg(char *prefarg)
* as we allow it in the preferences file, we might as well
* allow it here).
*/
- while (isspace((guchar)*p))
+ while (g_ascii_isspace(*p))
p++;
if (*p == '\0') {
/*