diff options
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; |