aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2002-08-31 14:14:24 +0000
committerMax Horn2002-08-31 14:14:24 +0000
commitcaf9817cb1f65521c317c81600bb6e21b3e7c29e (patch)
treeeead0dee7fa9f9119edb7a7073935fc8c58cebb1 /common
parent6fbbe6821964b0eab94c44c971e3a78814a45d24 (diff)
downloadscummvm-rg350-caf9817cb1f65521c317c81600bb6e21b3e7c29e.tar.gz
scummvm-rg350-caf9817cb1f65521c317c81600bb6e21b3e7c29e.tar.bz2
scummvm-rg350-caf9817cb1f65521c317c81600bb6e21b3e7c29e.zip
don't print char 0x7f
svn-id: r4881
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);
}