Commit ec07a37e ec07a37ec3be09ef1993335d9c96907014b763dc by Sergey Poznyakoff

Use sequential access for the output stream

1 parent cae52d8a
...@@ -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)
......