diff options
Diffstat (limited to 'text2pcap.c')
-rw-r--r-- | text2pcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text2pcap.c b/text2pcap.c index 84c7e0437b..7cd67e44fb 100644 --- a/text2pcap.c +++ b/text2pcap.c @@ -1352,7 +1352,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 (!g_ascii_isxdigit(tmp_str[0]) || !g_ascii_isxdigit(tmp_str[0])) { + if (!g_ascii_isxdigit(tmp_str[0]) || !g_ascii_isxdigit(tmp_str[1])) { break; } s2[i] = (char)strtoul(tmp_str, (char **)NULL, 16); |