diff options
| author | Ron Yorston <rmy@pobox.com> | 2016-05-16 09:33:03 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2016-05-16 09:33:03 +0100 |
| commit | 35d2f5bccb0f3dde600702ebcdb5424d4d50be4a (patch) | |
| tree | 6e0ff0341c69839e268459a199682628bae734ed /coreutils/split.c | |
| parent | 248a2600a2f4b442101ad568d1994b908bb28d4b (diff) | |
| parent | f2559e5c2b7bd2c5fa0dd8e88d0a931da92a23af (diff) | |
| download | busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.tar.gz busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.tar.bz2 busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.zip | |
Merge branch 'busybox' into merge
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 | ||
