diff options
-rw-r--r-- | toys/other/xxd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/xxd.c b/toys/other/xxd.c index 6203d7aa..80892fb5 100644 --- a/toys/other/xxd.c +++ b/toys/other/xxd.c @@ -103,7 +103,7 @@ static int dehex(char ch) { if (ch >= '0' && ch <= '9') return ch - '0'; if (ch >= 'a' && ch <= 'f') return ch - 'a' + 10; - if (ch >= 'A' && ch <= 'F') return ch - 'a' + 10; + if (ch >= 'A' && ch <= 'F') return ch - 'A' + 10; return (ch == '\n') ? -2 : -1; } |