summaryrefslogtreecommitdiffstats
path: root/usr.sbin/extattr/rmextattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/extattr/rmextattr.c')
-rw-r--r--usr.sbin/extattr/rmextattr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/extattr/rmextattr.c b/usr.sbin/extattr/rmextattr.c
index 7f6fdc2f..4373fd6 100644
--- a/usr.sbin/extattr/rmextattr.c
+++ b/usr.sbin/extattr/rmextattr.c
@@ -294,7 +294,8 @@ main(int argc, char *argv[])
printf("\"%s\"", visbuf);
} else if (flag_hex) {
for (i = 0; i < ret; i++)
- printf("%s%02x", i ? " " : "", buf[i]);
+ printf("%s%02x", i ? " " : "",
+ (unsigned char)buf[i]);
} else {
fwrite(buf, ret, 1, stdout);
}
OpenPOWER on IntegriCloud