aboutsummaryrefslogtreecommitdiffstats
path: root/fileset.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-10-17 16:42:40 -0700
committerGuy Harris <guy@alum.mit.edu>2014-10-17 23:43:09 +0000
commita91799ebfa3a3aac705132722e57acc92fe4eddb (patch)
tree0c0cc5ec7621cd63308ea11bff865dd0b05f7afb /fileset.c
parent19b7819694d328bdc17cd7d4812ed7f6edfd623d (diff)
Don't use ctype.h routines.
That avoids locale dependency and handles possibly-signed chars(which we weren't always doing before). Change-Id: I89e50678abb8c3e535081c92ca25bc1bab672c68 Reviewed-on: https://code.wireshark.org/review/4798 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'fileset.c')
-rw-r--r--fileset.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fileset.c b/fileset.c
index afa9e38..4c23790 100644
--- a/fileset.c
+++ b/fileset.c
@@ -44,7 +44,6 @@
#include <stdio.h>
#include <string.h>
-#include <ctype.h>
#include <glib.h>
@@ -109,7 +108,7 @@ fileset_filename_match_pattern(const char *fname)
while(minlen--) {
baselen--;
- if(!isdigit( (guchar) filename[baselen])) {
+ if(!g_ascii_isdigit( filename[baselen])) {
g_free(filename);
return FALSE;
}