diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-21 18:38:51 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-21 18:38:51 +0200 |
commit | 9de2e5a22213842da5b116723392de88de9ed419 (patch) | |
tree | dff999a566382174e084d377dc3b4c03de1d4c62 /coreutils/catv.c | |
parent | 47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5 (diff) | |
download | busybox-w32-9de2e5a22213842da5b116723392de88de9ed419.tar.gz busybox-w32-9de2e5a22213842da5b116723392de88de9ed419.tar.bz2 busybox-w32-9de2e5a22213842da5b116723392de88de9ed419.zip |
*: hopefully all setup_common_bufsiz() are in place
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/catv.c')
-rw-r--r-- | coreutils/catv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/coreutils/catv.c b/coreutils/catv.c index 801d2451d..0e71368a5 100644 --- a/coreutils/catv.c +++ b/coreutils/catv.c | |||
@@ -49,6 +49,9 @@ int catv_main(int argc UNUSED_PARAM, char **argv) | |||
49 | /* Read from stdin if there's nothing else to do. */ | 49 | /* Read from stdin if there's nothing else to do. */ |
50 | if (!argv[0]) | 50 | if (!argv[0]) |
51 | *--argv = (char*)"-"; | 51 | *--argv = (char*)"-"; |
52 | |||
53 | #define read_buf bb_common_bufsiz1 | ||
54 | setup_common_bufsiz(); | ||
52 | do { | 55 | do { |
53 | fd = open_or_warn_stdin(*argv); | 56 | fd = open_or_warn_stdin(*argv); |
54 | if (fd < 0) { | 57 | if (fd < 0) { |
@@ -58,7 +61,6 @@ int catv_main(int argc UNUSED_PARAM, char **argv) | |||
58 | for (;;) { | 61 | for (;;) { |
59 | int i, res; | 62 | int i, res; |
60 | 63 | ||
61 | #define read_buf bb_common_bufsiz1 | ||
62 | res = read(fd, read_buf, COMMON_BUFSIZE); | 64 | res = read(fd, read_buf, COMMON_BUFSIZE); |
63 | if (res < 0) | 65 | if (res < 0) |
64 | retval = EXIT_FAILURE; | 66 | retval = EXIT_FAILURE; |