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

@ -50,6 +50,7 @@ LIB_CURLX_HFILES = \
curlx/inet_pton.h \
curlx/multibyte.h \
curlx/nonblock.h \
curlx/snprintf.h \
curlx/strerr.h \
curlx/strparse.h \
curlx/timediff.h \