]> git.ipfire.org Git - thirdparty/curl.git/commit
curl: writeout: fix repeated header outputs
authorDaniel Stenberg <daniel@haxx.se>
Wed, 13 Jul 2022 21:53:05 +0000 (23:53 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 17 Jul 2022 21:29:02 +0000 (23:29 +0200)
commit0ef4f087cd294a3af112442febd9ebe080db7221
tree798b795bdb9306229fd9538a5275803290f90db0
parenta88dbe410f702036b691199d4f20d310717b29eb
curl: writeout: fix repeated header outputs

The function stored a terminating zero into the buffer for convenience,
but when on repeated calls that would cause problems. Starting now, the
passed in buffer is not modified.

Reported-by: highmtworks on github
Fixes #9150
Closes #9152
src/tool_writeout.c