diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2016-03-09 02:59:05 -0500 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-05-13 00:06:50 +0200 |
commit | 68701e51c1f794df59d9f70bcddbf714ee91b868 (patch) | |
tree | 5e76101c1e372d42fab764fdbf0b3d8a503baae6 /src/tool_version.h | |
parent | 117a0ffe9fbe2984d2f964a844a8e662586ae9b1 (diff) |
mprintf: Fix processing of width and prec args
Prior to this change a width arg could be erroneously output, and also
width and precision args could not be used together without crashing.
"%0*d%s", 2, 9, "foo"
Before: "092"
After: "09foo"
"%*.*s", 5, 2, "foo"
Before: crash
After: " fo"
Test 557 is updated to verify this and more
Diffstat (limited to 'src/tool_version.h')
0 files changed, 0 insertions, 0 deletions