]> The Tcpdump Group git mirrors - libpcap/blobdiff - etherent.c
Update config.{guess,sub}, timestamps 2023-01-01,2023-01-21
[libpcap] / etherent.c
index 3504a25ef1f53e35a621b65976d873cf311f5da9..69da9a540ad8d088b304b8432fc55c3d86b9012e 100644 (file)
@@ -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);