diff options
Diffstat (limited to 'text2pcap.c')
-rw-r--r-- | text2pcap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/text2pcap.c b/text2pcap.c index 8d218405e0..9b8b9ebd14 100644 --- a/text2pcap.c +++ b/text2pcap.c @@ -107,7 +107,6 @@ # define __EXTENSIONS__ #endif -#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -1355,7 +1354,7 @@ parse_token (token_t token, char *str) tmp_str[1] = pkt_lnstart[i*3+1]; tmp_str[2] = '\0'; /* it is a valid convertable string */ - if (!isxdigit(tmp_str[0]) || !isxdigit(tmp_str[0])) { + if (!g_ascii_isxdigit(tmp_str[0]) || !g_ascii_isxdigit(tmp_str[0])) { break; } s2[i] = (char)strtoul(tmp_str, (char **)NULL, 16); |