diff options
Diffstat (limited to 'coreutils/split.c')
| -rw-r--r-- | coreutils/split.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/coreutils/split.c b/coreutils/split.c index 1e1673efb..e67c3de66 100644 --- a/coreutils/split.c +++ b/coreutils/split.c | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | //usage: "$ cat TODO | split -a 2 -l 2 TODO_\n" | 22 | //usage: "$ cat TODO | split -a 2 -l 2 TODO_\n" |
| 23 | 23 | ||
| 24 | #include "libbb.h" | 24 | #include "libbb.h" |
| 25 | #include "common_bufsiz.h" | ||
| 25 | 26 | ||
| 26 | #if ENABLE_FEATURE_SPLIT_FANCY | 27 | #if ENABLE_FEATURE_SPLIT_FANCY |
| 27 | static const struct suffix_mult split_suffixes[] = { | 28 | static const struct suffix_mult split_suffixes[] = { |
| @@ -78,6 +79,8 @@ int split_main(int argc UNUSED_PARAM, char **argv) | |||
| 78 | ssize_t bytes_read, to_write; | 79 | ssize_t bytes_read, to_write; |
| 79 | char *src; | 80 | char *src; |
| 80 | 81 | ||
| 82 | setup_common_bufsiz(); | ||
| 83 | |||
| 81 | opt_complementary = "?2:a+"; /* max 2 args; -a N */ | 84 | opt_complementary = "?2:a+"; /* max 2 args; -a N */ |
| 82 | opt = getopt32(argv, "l:b:a:", &count_p, &count_p, &suffix_len); | 85 | opt = getopt32(argv, "l:b:a:", &count_p, &count_p, &suffix_len); |
| 83 | 86 | ||
