diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-09-22 17:28:34 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-09-23 08:54:42 +0200 |
commit | 7e8561e030fcfaba5cd620d7e9c9ab8356163132 (patch) | |
tree | bede470aac7ebaea20edbd604624050cac54fb7e /lib/curl_printf.h | |
parent | 23558577023538a17c70933acc5de04bf350d9c2 (diff) | |
download | curl-7e8561e030fcfaba5cd620d7e9c9ab8356163132.tar.gz |
dynbuf: make *addf() not require extra mallocs
... by introducing a printf() function that appends directly into a
dynbuf: Curl_dyn_vprintf(). This avoids the mandatory extra malloc so if
the buffer is already big enough it can just printf directly into it.
Since this less-malloc version requires tthe use of a library internal
printf function, we only provide this version when building libcurl and
not for the dynbuf code that is used when building the curl tool.
Closes #5998
Diffstat (limited to 'lib/curl_printf.h')
-rw-r--r-- | lib/curl_printf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/curl_printf.h b/lib/curl_printf.h index 0d37b8e57..9d2de7ba8 100644 --- a/lib/curl_printf.h +++ b/lib/curl_printf.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms |