content_encoding: avoid strcpy

Build list with dynbuf.

Closes #20072
This commit is contained in:
Daniel Stenberg 2025-12-22 11:36:42 +01:00
parent d92e264ff0
commit 6b9c75e219
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 27 additions and 46 deletions

View file

@ -27,7 +27,8 @@
struct Curl_cwriter;
void Curl_all_content_encodings(char *buf, size_t blen);
/* returns an allocated string or NULL */
char *Curl_get_content_encodings(void);
CURLcode Curl_build_unencoding_stack(struct Curl_easy *data,
const char *enclist, int is_transfer);