Use sequential access for the output stream
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -90,14 +90,14 @@ main (int argc, char * argv []) | ... | @@ -90,14 +90,14 @@ main (int argc, char * argv []) |
90 | { | 90 | { |
91 | char outbuf[24]; | 91 | char outbuf[24]; |
92 | sprintf (outbuf, "\\%03o", (unsigned int) buffer); | 92 | sprintf (outbuf, "\\%03o", (unsigned int) buffer); |
93 | stream_write (out, outbuf, strlen (outbuf), total, NULL); | 93 | stream_sequential_write (out, outbuf, strlen (outbuf)); |
94 | } | 94 | } |
95 | else | 95 | else |
96 | stream_write (out, &buffer, size, total, NULL); | 96 | stream_sequential_write (out, &buffer, size); |
97 | total += size; | 97 | total += size; |
98 | } | 98 | } |
99 | 99 | ||
100 | stream_write (out, "\n", 1, total, NULL); | 100 | stream_sequential_write (out, "\n", 1); |
101 | stream_close (in); | 101 | stream_close (in); |
102 | stream_close (out); | 102 | stream_close (out); |
103 | if (verbose) | 103 | if (verbose) | ... | ... |
-
Please register or sign in to post a comment