summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libzfs/libzfs_diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libzfs/libzfs_diff.c b/lib/libzfs/libzfs_diff.c
index b721a9fd9..57a7c1556 100644
--- a/lib/libzfs/libzfs_diff.c
+++ b/lib/libzfs/libzfs_diff.c
@@ -122,9 +122,9 @@ stream_bytes(FILE *fp, const char *string)
while ((c = *string++) != '\0') {
if (c > ' ' && c != '\\' && c < '\177') {
- (void) fprintf(fp, "%c", c);
+ (void) fputc(c, fp);
} else {
- (void) fprintf(fp, "\\%04o", (uint8_t)c);
+ (void) fprintf(fp, "\\%04hho", (uint8_t)c);
}
}
}