Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74368
b: refs/heads/master
c: d0eec99
h: refs/heads/master
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Nov 29, 2007
1 parent d85c5fd commit 9b6cbf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6454d1f9038f708d7deef6270ed4ba5bb6e55869
refs/heads/master: d0eec99ce50baa5cc2ac02363cdb2a771ed4e1e2
3 changes: 2 additions & 1 deletion trunk/lib/hexdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ void hex_dump_to_buffer(const void *buf, size_t len, int rowsize,
while (lx < (linebuflen - 1) && lx < (ascii_column - 1))
linebuf[lx++] = ' ';
for (j = 0; (j < rowsize) && (j < len) && (lx + 2) < linebuflen; j++)
linebuf[lx++] = isprint(ptr[j]) ? ptr[j] : '.';
linebuf[lx++] = (isascii(ptr[j]) && isprint(ptr[j])) ? ptr[j]
: '.';
nil:
linebuf[lx++] = '\0';
}
Expand Down

0 comments on commit 9b6cbf0

Please sign in to comment.