]> git.ipfire.org Git - thirdparty/curl.git/commit
tool: reorganize function c_escape around a dynbuf
authorPatrick Monnerat <patrick@monnerat.net>
Wed, 5 Oct 2022 16:51:16 +0000 (18:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 6 Oct 2022 07:03:33 +0000 (09:03 +0200)
commit2e475deb802bfa8bbd41e03c3b3b256b26172b65
tree49bf6f0fb8ecb37c1c0900147b6b08ca4f1884af
parenteada2900988efbd5a17d3d0f051d4eae6929e5d3
tool: reorganize function c_escape around a dynbuf

This is a bit shorter and a lot safer.

Substrings of unescaped characters are added by a single call to reduce
overhead.

Extend test 1465 to handle more kind of escapes.

Closes #9653
src/tool_setopt.c
tests/data/test1465