diff options
Diffstat (limited to 'coreutils/split.c')
-rw-r--r-- | coreutils/split.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/coreutils/split.c b/coreutils/split.c index cf26a9322..2306789f0 100644 --- a/coreutils/split.c +++ b/coreutils/split.c | |||
@@ -68,15 +68,13 @@ int split_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
68 | ssize_t bytes_read, to_write; | 68 | ssize_t bytes_read, to_write; |
69 | char *src; | 69 | char *src; |
70 | 70 | ||
71 | opt_complementary = "?2"; | 71 | opt_complementary = "?2:a+"; /* max 2 args; -a N */ |
72 | opt = getopt32(argv, "l:b:a:", &count_p, &count_p, &sfx); | 72 | opt = getopt32(argv, "l:b:a:", &count_p, &count_p, &suffix_len); |
73 | 73 | ||
74 | if (opt & SPLIT_OPT_l) | 74 | if (opt & SPLIT_OPT_l) |
75 | cnt = xatoul(count_p); | 75 | cnt = XATOOFF(count_p); |
76 | if (opt & SPLIT_OPT_b) | 76 | if (opt & SPLIT_OPT_b) // FIXME: also needs XATOOFF |
77 | cnt = xatoul_sfx(count_p, split_suffices); | 77 | cnt = xatoull_sfx(count_p, split_suffices); |
78 | if (opt & SPLIT_OPT_a) | ||
79 | suffix_len = xatou(sfx); | ||
80 | sfx = "x"; | 78 | sfx = "x"; |
81 | 79 | ||
82 | argv += optind; | 80 | argv += optind; |