aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/util.cpp b/common/util.cpp
index 4a5d50e369..6f55014ef9 100644
--- a/common/util.cpp
+++ b/common/util.cpp
@@ -95,7 +95,7 @@ void hexdump(const byte * data, int len)
printf(" |");
for (i = 0; i < 8; i++) {
c = data[i];
- if (c < 32 || c > 127)
+ if (c < 32 || c >= 127)
c = '.';
printf("%c", c);
}
@@ -114,7 +114,7 @@ void hexdump(const byte * data, int len)
printf(" |");
for (i = 0; i < len; i++) {
c = data[i];
- if (c < 32 || c > 127)
+ if (c < 32 || c >= 127)
c = '.';
printf("%c", c);
}