Mercurial > hg > toybox
comparison toys/count.c @ 314:5ab9d0e5e0f8
Fix giant glaring thinko.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 28 Aug 2008 17:32:05 -0500 |
parents | 163498bf547b |
children | b2194045c40e |
comparison
equal
deleted
inserted
replaced
313:d1ae502ee190 | 314:5ab9d0e5e0f8 |
---|---|
26 | 26 |
27 for (;;) { | 27 for (;;) { |
28 len = xread(0, toybuf, sizeof(toybuf)); | 28 len = xread(0, toybuf, sizeof(toybuf)); |
29 if (!len) break; | 29 if (!len) break; |
30 size += len; | 30 size += len; |
31 xwrite(1, toybuf, sizeof(toybuf)); | 31 xwrite(1, toybuf, len); |
32 fdprintf(2, "%"PRIu64" bytes\r", size); | 32 fdprintf(2, "%"PRIu64" bytes\r", size); |
33 } | 33 } |
34 fdprintf(2,"\n"); | 34 fdprintf(2,"\n"); |
35 } | 35 } |