Add script/print-bits.go.

This commit is contained in:
Nigel Tao committed 2017-07-17 17:28:19 +10:00
1 parent 547351cfec
commit c463f4956f
2 files changed
+62 -1

No files matched your search

+1 -1
View File
@@ -237,7 +237,7 @@ char* hex_dump(char* msg, puffs_base_buf1* buf, size_t i) {
char c = ' ';
if (k < n) {
c = buf->ptr[b + k];
if ((c < 0x20) || (0x7F < c)) {
if ((c < 0x20) || (0x7F <= c)) {
c = '.';
}
}