curlx: replace sprintf with snprintf

To avoid using a deprecated function on Windows.

Also: de-dupe `SNPRINTF` definition in curlx.

Closes #19681
This commit is contained in:
Viktor Szakats 2025-11-25 03:35:40 +01:00
parent 74bd3e2f98
commit 62683ad3f4
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
7 changed files with 48 additions and 37 deletions

View file

@ -54,6 +54,7 @@ CURLX_HFILES = \
../lib/curlx/fopen.h \
../lib/curlx/multibyte.h \
../lib/curlx/nonblock.h \
../lib/curlx/snprintf.h \
../lib/curlx/strerr.h \
../lib/curlx/strparse.h \
../lib/curlx/timediff.h \