aboutsummaryrefslogtreecommitdiffstats
path: root/sdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'sdump.c')
-rw-r--r--sdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdump.c b/sdump.c
index 6edf0a66..3748672a 100644
--- a/sdump.c
+++ b/sdump.c
@@ -36,7 +36,7 @@ char *sdump(const char *in, size_t len)
if (isprint((unsigned char)in[i])) {
*(oi++) = in[i];
} else {
- oi += sprintf(oi, "\\x%02X", in[i]);
+ oi += sprintf(oi, "\\x%02X", (unsigned char)in[i]);
}
}
*oi = '\0';