X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/ec82e5bbd994444c2f10e861dbf3c4d8f0fc7f96..09b51d326c38ea8e10ce4da09c09d50e08c5aeb8:/etherent.c diff --git a/etherent.c b/etherent.c index 3504a25e..69da9a54 100644 --- a/etherent.c +++ b/etherent.c @@ -44,7 +44,7 @@ static inline int skip_line(FILE *); static inline u_char xdtoi(u_char c) { - if (c >= '0' && c < '9') + if (c >= '0' && c <= '9') return (u_char)(c - '0'); else if (c >= 'a' && c <= 'f') return (u_char)(c - 'a' + 10);