Mercurial > hg > toybox
diff toys/posix/split.c @ 1183:0752b2d58909 draft
Rename xmsprintf() to just xmprintf().
Partly because there's no supplied target string ala sprintf, and partly
because I can never remember what order the m and s go in.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 16 Jan 2014 09:26:50 -0600 |
parents | b792de46d715 |
children | 59a3fd32329c |
line wrap: on
line diff
--- a/toys/posix/split.c Wed Jan 15 09:38:31 2014 -0600 +++ b/toys/posix/split.c Thu Jan 16 09:26:50 2014 -0600 @@ -100,7 +100,7 @@ if (!TT.bytes && !TT.lines) TT.lines = 1000; // Allocate template for output filenames - TT.outfile = xmsprintf("%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.