From bfa4759d51e3db4b890beba56e6effe7b66786b7 Mon Sep 17 00:00:00 2001 From: kpowkitty Date: Thu, 26 Jun 2025 16:23:28 -0700 Subject: [PATCH] replace raw isprint() w/ isprint() func Signed-off-by: Kayla Powell (AKA Kat) Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1740 --- stand/libsa/hexdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/libsa/hexdump.c b/stand/libsa/hexdump.c index 83fd5e277f1..cce6e323c2c 100644 --- a/stand/libsa/hexdump.c +++ b/stand/libsa/hexdump.c @@ -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 {