Mercurial > hg > toybox
diff toys/posix/cp.c @ 1714:0c8ef714cf03 draft
Patches from Elliott Hughes to fix various printf() format strings.
(Don't specify the space flag when it's the default behavior. The ifconfig
stuff was actual bugs.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 01 Mar 2015 16:08:51 -0600 |
parents | dee053b7c775 |
children | 5a00bc5e1c0f |
line wrap: on
line diff
--- a/toys/posix/cp.c Sun Mar 01 15:58:40 2015 -0600 +++ b/toys/posix/cp.c Sun Mar 01 16:08:51 2015 -0600 @@ -208,7 +208,7 @@ if (*or->name == '/') dotdots = 0; if (dotdots) { - char *s2 = xmprintf("% *c%s", 3*dotdots, ' ', s); + char *s2 = xmprintf("%*c%s", 3*dotdots, ' ', s); free(s); s = s2; while(dotdots--) {