diff options
-rw-r--r-- | util-linux/hexdump_xxd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/hexdump_xxd.c b/util-linux/hexdump_xxd.c index b5942899e..9738a76ad 100644 --- a/util-linux/hexdump_xxd.c +++ b/util-linux/hexdump_xxd.c | |||
@@ -78,7 +78,7 @@ static void write_zeros(off_t count) | |||
78 | do { | 78 | do { |
79 | unsigned sz = count < COMMON_BUFSIZE ? (unsigned)count : COMMON_BUFSIZE; | 79 | unsigned sz = count < COMMON_BUFSIZE ? (unsigned)count : COMMON_BUFSIZE; |
80 | if (fwrite(fillbuf, 1, sz, stdout) != sz) | 80 | if (fwrite(fillbuf, 1, sz, stdout) != sz) |
81 | bb_perror_msg_and_die("write error"); | 81 | bb_simple_perror_msg_and_die("write error"); |
82 | count -= sz; | 82 | count -= sz; |
83 | } while (count != 0); | 83 | } while (count != 0); |
84 | } | 84 | } |
@@ -120,7 +120,7 @@ static void reverse(unsigned opt, const char *filename, char *opt_s) | |||
120 | if (ofs != cur) { | 120 | if (ofs != cur) { |
121 | if (fseeko(stdout, ofs, SEEK_SET) != 0) { | 121 | if (fseeko(stdout, ofs, SEEK_SET) != 0) { |
122 | if (ofs < cur) | 122 | if (ofs < cur) |
123 | bb_perror_msg_and_die("cannot seek"); | 123 | bb_simple_perror_msg_and_die("cannot seek"); |
124 | write_zeros(ofs - cur); | 124 | write_zeros(ofs - cur); |
125 | } | 125 | } |
126 | cur = ofs; | 126 | cur = ofs; |