aboutsummaryrefslogtreecommitdiff
path: root/coreutils/split.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/split.c')
-rw-r--r--coreutils/split.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/split.c b/coreutils/split.c
index c1e4ceab2..ecbc9d2d8 100644
--- a/coreutils/split.c
+++ b/coreutils/split.c
@@ -127,7 +127,7 @@ int split_main(int argc UNUSED_PARAM, char **argv)
127 } 127 }
128 128
129 if (NAME_MAX < strlen(sfx) + suffix_len) 129 if (NAME_MAX < strlen(sfx) + suffix_len)
130 bb_error_msg_and_die("suffix too long"); 130 bb_simple_error_msg_and_die("suffix too long");
131 131
132 { 132 {
133 char *char_p = xzalloc(suffix_len + 1); 133 char *char_p = xzalloc(suffix_len + 1);
@@ -147,7 +147,7 @@ int split_main(int argc UNUSED_PARAM, char **argv)
147 do { 147 do {
148 if (!remaining) { 148 if (!remaining) {
149 if (!pfx) 149 if (!pfx)
150 bb_error_msg_and_die("suffixes exhausted"); 150 bb_simple_error_msg_and_die("suffixes exhausted");
151 xmove_fd(xopen(pfx, O_WRONLY | O_CREAT | O_TRUNC), 1); 151 xmove_fd(xopen(pfx, O_WRONLY | O_CREAT | O_TRUNC), 1);
152 pfx = next_file(pfx, suffix_len); 152 pfx = next_file(pfx, suffix_len);
153 remaining = cnt; 153 remaining = cnt;