replace raw isprint() w/ isprint() func
Signed-off-by: Kayla Powell (AKA Kat) <kpowkitty@FreeBSD.org> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1740
This commit is contained in:
@@ -61,7 +61,7 @@ hexdump(caddr_t region, size_t len)
|
||||
for (x = 0; x < 16; x++) {
|
||||
if ((line + x) < (region + len)) {
|
||||
c = *(uint8_t *)(line + x);
|
||||
if ((c < ' ') || (c > '~')) /* !isprint(c) */
|
||||
if (!isprint(c))
|
||||
c = '.';
|
||||
emit("%c", c);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user