diff options
| author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2011-03-24 14:12:41 +0000 |
|---|---|---|
| committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2011-03-24 14:12:41 +0000 |
| commit | 939f98dd4da1e08f2274ceff7092405bd2254544 (patch) | |
| tree | 4428327a408d8666b8eb22d61183ecfac5d6083c | |
| parent | 97b0bfc2e9c9917c94812e2e864272b64f2aa0c3 (diff) | |
Notes
| -rw-r--r-- | cddl/contrib/opensolaris/lib/libzfs/common/libzfs_diff.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_diff.c b/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_diff.c index ae84285a9bb5..ab2007d98a33 100644 --- a/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_diff.c +++ b/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_diff.c @@ -138,8 +138,10 @@ stream_bytes(FILE *fp, const char *string) while (*string) { if (*string > ' ' && *string != '\\' && *string < '\177') (void) fprintf(fp, "%c", *string++); - else - (void) fprintf(fp, "\\%03o", *string++); + else { + (void) fprintf(fp, "\\%03hho", + (unsigned char)*string++); + } } } |
