From 7c3c6a9639ee41fb750f78d87dc8a6cbe4e421a5 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sun, 1 Mar 2015 15:48:49 -0600 Subject: remove accidental space in format string the ' ' flag makes no sense for %c. --- toys/posix/split.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/split.c') 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. -- cgit v1.2.3