mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
mprintf: drop old sprintf fallback
1. No modern systems lack snprintf() 2. If there actually exist any such systems, they get to manage without floating point output. Closes #20218
This commit is contained in:
parent
bb7f69f9a2
commit
7de35515d9
1 changed files with 2 additions and 1 deletions
|
|
@ -712,7 +712,8 @@ static bool out_double(void *userp,
|
|||
work[BUFFSIZE - 1] = 0;
|
||||
#endif
|
||||
#else
|
||||
(sprintf)(work, formatbuf, dnum);
|
||||
/* float and double outputs do not work without snprintf support */
|
||||
work[0] = 0;
|
||||
#endif
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue