curlx: curlx_strcopy() instead of strcpy()

This function REQUIRES the size of the target buffer as well as the
length of the source string. Meant to make it harder to do a bad
strcpy().
This commit is contained in:
Daniel Stenberg 2025-12-21 23:40:24 +01:00
parent 6b9c75e219
commit f249199426
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
30 changed files with 197 additions and 97 deletions

View file

@ -40,6 +40,7 @@ CURLX_C = \
../../lib/curlx/inet_pton.c \
../../lib/curlx/multibyte.c \
../../lib/curlx/nonblock.c \
../../lib/curlx/strcopy.c \
../../lib/curlx/strerr.c \
../../lib/curlx/strparse.c \
../../lib/curlx/timediff.c \