diff options
author | Rob Landley <rob@landley.net> | 2019-04-04 14:15:37 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-04-04 14:15:37 -0500 |
commit | 170ce208408f72d2c679eb165ce2c2c1d2619cd9 (patch) | |
tree | 7f001e3c2922f4030778636f368ffa34aaa64b49 /toys/posix/du.c | |
parent | 063e8a8deaa89ca35ce6795f216c870e2df0743d (diff) | |
download | toybox-170ce208408f72d2c679eb165ce2c2c1d2619cd9.tar.gz |
Tweak stat.
next_printf() shouldn't return null unless it never found the start of an
escape sequence (it'll return a pointer to the null at the end of the string
otherwise), and the only time we point it at a % and it doesn't is when it's
%%. So handle that before calling. (Also, a single trailing % prints in
other implementations, and while I'm there update to use FLAG() macros,
add a couple comments, and only xflush() once per pattern.)
Diffstat (limited to 'toys/posix/du.c')
0 files changed, 0 insertions, 0 deletions