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:
Daniel Stenberg 2026-01-08 09:10:38 +01:00
parent bb7f69f9a2
commit 7de35515d9
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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