changeset 1712:59a3fd32329c draft

remove accidental space in format string the ' ' flag makes no sense for %c.
author Elliott Hughes <enh@google.com>
date Sun, 01 Mar 2015 15:48:49 -0600
parents 23acd6af27e4
children 58d9f1b61f0a
files toys/posix/split.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/toys/posix/split.c	Sun Mar 01 15:35:48 2015 -0600
+++ b/toys/posix/split.c	Sun Mar 01 15:48:49 2015 -0600
@@ -100,7 +100,7 @@
   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.