summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-08-22 08:30:46 -0400
committerJakob Kaivo <jkk@ung.org>2019-08-22 08:30:46 -0400
commit0defa702d64b5454456fb450bfed291c1057e30c (patch)
tree66595c8bc286993ce1bbd83852a0959cd13b6cd6
parent7b7798dc92170c6d1399ca0e683de892cc154b61 (diff)
specify width of characters as hhHEADmaster
-rw-r--r--cmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmp.c b/cmp.c
index a8174f5..c72afbe 100644
--- a/cmp.c
+++ b/cmp.c
@@ -118,7 +118,7 @@ int main(int argc, char *argv[])
} else if (c2 == EOF && output != SILENT) {
fprintf(stderr, "cmp: EOF on %s\n", file2);
} else if (output == ALL) {
- printf("%zd %o %o\n", byte, c1, c2);
+ printf("%zd %hho %hho\n", byte, c1, c2);
continue;
} else if (output != SILENT) {
printf("%s %s differ: char %zd, line %zd\n",