{"author":"Viktor Szakats","author_email":"commit@vsz.me","author_time":1759540237,"commit_time":1759736663,"committer":"Viktor Szakats","committer_email":"commit@vsz.me","hash":"34ad78da89c614aafb21033bac456a1c0f54921a","message":"curlx: move Curl_strerror, use in src and tests, ban `strerror` globally\n\nAlso:\n- tests/server: replace local `sstrerror()` with `curlx_strerror()`.\n- tests/server: show the error code next to the string, where missing.\n- curlx: use `curl_msnprintf()` when building for src and tests.\n  (units was already using it.)\n- lib: drop unused includes found along the way.\n- curlx_strerror(): avoid compiler warning (and another similar one):\n  ```\n  In file included from servers.c:14:\n  ../../lib/../../lib/curlx/strerr.c: In function ‘curlx_strerror’:\n  ../../lib/../../lib/curlx/strerr.c:328:32: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]\n    328 |       SNPRINTF(buf, buflen, \"%s\", msg);\n        |                                ^\n  ../../lib/../../lib/curlx/strerr.c:47:18: note: ‘snprintf’ output 1 or more bytes (assuming 2) into a destination of size 1\n     47 | #define SNPRINTF snprintf\n        |                  ^\n  ../../lib/../../lib/curlx/strerr.c:328:7: note: in expansion of macro ‘SNPRINTF’\n    328 |       SNPRINTF(buf, buflen, \"%s\", msg);\n        |       ^~~~~~~~\n  ```\n\nFollow-up to 45438c8d6f8e70385d66c029568524e9e803c539 #18823\n\nCloses #18840\n","parents":["eaf66f18b72ee7c2c6e5e1120b70b14975dd66bd"],"tree_hash":"ef557327922e6c6e1b64d7d10e1e9821ece24399"}