]> git.feebdaed.xyz Git - 0xmirror/curl.git/commit
tests: replace `strcpy()` with `curlx_strcopy()`
authorViktor Szakats <commit@vsz.me>
Tue, 23 Dec 2025 10:59:59 +0000 (11:59 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 23 Dec 2025 21:25:39 +0000 (22:25 +0100)
commit436e67f65b9dee1e80aa063c39450f0d1df6ac72
tree8b745ab224ca7b3953a60879cd10751933708d16
parent66aec526fcdb91bfabca7be638eff13d53b51a8a
tests: replace `strcpy()` with `curlx_strcopy()`

Also:
- examples/hsts-preload: apply the same change as it's based on lib1915
  in tests. Make a local clone of `curlx_strcopy()`. Then drop the
  `_CRT_SECURE_NO_WARNINGS` hack, that's no longer necessary.
- curl_setup.h: delete `strcpy()` from the `_CRT_SECURE_NO_WARNINGS`
  list.

Closes #20076
docs/examples/hsts-preload.c
lib/curl_setup.h
tests/libtest/lib1901.c
tests/libtest/lib1915.c
tests/libtest/lib544.c
tests/server/getpart.c
tests/server/socksd.c
tests/server/util.c
tests/unit/unit3205.c