aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-04-04 14:15:37 -0500
committerRob Landley <rob@landley.net>2019-04-04 14:15:37 -0500
commit170ce208408f72d2c679eb165ce2c2c1d2619cd9 (patch)
tree7f001e3c2922f4030778636f368ffa34aaa64b49 /lib/lib.h
parent063e8a8deaa89ca35ce6795f216c870e2df0743d (diff)
downloadtoybox-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 'lib/lib.h')
0 files changed, 0 insertions, 0 deletions