aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/split.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/split.c')
-rw-r--r--toys/posix/split.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/split.c b/toys/posix/split.c
index d9a556b8..aabf9310 100644
--- a/toys/posix/split.c
+++ b/toys/posix/split.c
@@ -100,7 +100,7 @@ void split_main(void)
if (!TT.bytes && !TT.lines) TT.lines = 1000;
// Allocate template for output filenames
- TT.outfile = xmprintf("%s% *c", (toys.optc == 2) ? toys.optargs[1] : "x",
+ TT.outfile = xmprintf("%s%*c", (toys.optc == 2) ? toys.optargs[1] : "x",
(int)TT.suflen, ' ');
// We only ever use one input, but this handles '-' or no input for us.