projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ee0cd9
)
remove accidental space in format string
author
Elliott Hughes
<enh@google.com>
Sun, 1 Mar 2015 21:48:49 +0000
(15:48 -0600)
committer
Elliott Hughes
<enh@google.com>
Sun, 1 Mar 2015 21:48:49 +0000
(15:48 -0600)
the ' ' flag makes no sense for %c.
toys/posix/split.c
patch
|
blob
|
history
diff --git
a/toys/posix/split.c
b/toys/posix/split.c
index
d9a556b
..
aabf931
100644
(file)
--- 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.