mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:01:41 +03:00
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(). Removes 23 calls to strcpy(). Closes #20067
This commit is contained in:
parent
f099c2ca55
commit
a535be4ea0
30 changed files with 195 additions and 97 deletions
|
|
@ -37,6 +37,7 @@ CURLX_C = \
|
|||
../../lib/curl_threads.c \
|
||||
../../lib/curlx/fopen.c \
|
||||
../../lib/curlx/multibyte.c \
|
||||
../../lib/curlx/strcopy.c \
|
||||
../../lib/curlx/strerr.c \
|
||||
../../lib/curlx/strparse.c \
|
||||
../../lib/curlx/timediff.c \
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue