]> git.ipfire.org Git - thirdparty/curl.git/commit
mprintf: use snprintf if available
authorDaniel Stenberg <daniel@haxx.se>
Thu, 22 Sep 2022 09:52:08 +0000 (11:52 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 22 Sep 2022 21:06:26 +0000 (23:06 +0200)
commit935b1bd4544a23a91d68ffb9f86983e92747e9a5
treeb31b3868b60c475dd60bc6d9195ecdf57d9c0614
parentbf1571eb6ff24a8299da7da84408da31f0094f66
mprintf: use snprintf if available

This is the single place in libcurl code where it uses the "native"
s(n)printf() function. Used for writing floats. The use has been
reviewed and vetted and uses a HUGE target buffer, but switching to
snprintf() still makes this safer and removes build-time warnings.

Reported-by: Philip Heiduck
Fixes #9569
Closes #9570
CMakeLists.txt
configure.ac
lib/config-win32.h
lib/mprintf.c