mirror of
https://github.com/curl/curl.git
synced 2026-05-19 17:46:21 +03:00
dynbuf: assert on curlx_dyn_addf use with just "%s"
Because it is wasteful and should be done better. Closes #18194
This commit is contained in:
parent
7aa04d3395
commit
bf5265ad11
1 changed files with 1 additions and 0 deletions
|
|
@ -231,6 +231,7 @@ CURLcode curlx_dyn_addf(struct dynbuf *s, const char *fmt, ...)
|
|||
DEBUGASSERT(s);
|
||||
DEBUGASSERT(s->init == DYNINIT);
|
||||
DEBUGASSERT(!s->leng || s->bufr);
|
||||
DEBUGASSERT(strcmp(fmt, "%s")); /* use curlx_dyn_add instead */
|
||||
va_start(ap, fmt);
|
||||
result = curlx_dyn_vaddf(s, fmt, ap);
|
||||
va_end(ap);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue