mirror of
https://github.com/moparisthebest/curl
synced 2024-10-31 23:55:01 -04:00
812da4190f
If the precision is indeed shorter than the string, don't strlen() to find the end because that's not how the precision operator works. I also added a unit test for curl_msnprintf to make sure this works and that the fix doesn't a few other basic use cases. I found a POSIX compliance problem that I marked TODO in the unit test, and I figure we need to add more tests in the future. Reported-by: Török Edwin
27 lines
245 B
Plaintext
27 lines
245 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
unittest
|
|
curl_msnprintf
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
none
|
|
</server>
|
|
<features>
|
|
unittest
|
|
</features>
|
|
<name>
|
|
curl_msnprintf unit tests
|
|
</name>
|
|
<tool>
|
|
unit1398
|
|
</tool>
|
|
</client>
|
|
|
|
</testcase>
|