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 /tests/data/test557 | |
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 'tests/data/test557')
-rw-r--r-- | tests/data/test557 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/data/test557 b/tests/data/test557 index ee2793f56..8d0944a1e 100644 --- a/tests/data/test557 +++ b/tests/data/test557 @@ -39,6 +39,7 @@ All curl_mprintf() signed int tests OK! All curl_mprintf() unsigned long tests OK! All curl_mprintf() signed long tests OK! All curl_mprintf() curl_off_t tests OK! +All curl_mprintf() strings tests OK! </stdout> </verify> |