Diff between 08d3546855a9dcd4a6dfbdeaa9c5244e5abfa167 and 21e0f9e5070ae2e37ae2efed91c021f0257bd129
Changed Files
| File | Additions | Deletions | Status |
| tools/parser/parser.c | +1 | -1 | modified |
Full Patch
diff --git a/tools/parser/parser.c b/tools/parser/parser.c
index 8ca216a..a4cd8a7 100644
--- a/tools/parser/parser.c
+++ b/tools/parser/parser.c
@@ -66,7 +66,7 @@ static inline void ascii_dump(int level, unsigned char *buf, int len)
for (i=0, n=1; i<len; i++, n++) {
if (n == 1)
indent(level);
- printf("%1c ", isprint(buf[i]) ? buf[1] : '.');
+ printf("%1c ", isprint(buf[i]) ? buf[i] : '.');
if (n == DUMP_WIDTH) {
printf("\n");
n = 0;