tool_getparam: replace malloc + copy by dynbuf for --data

This commit is contained in:
Daniel Stenberg 2024-01-08 17:00:05 +01:00
parent f37840a46e
commit 1dba44b2f1
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 18 additions and 29 deletions

View file

@ -88,8 +88,6 @@ ParameterError file2string(char **bufp, FILE *file)
return PARAM_OK;
}
#define MAX_FILE2MEMORY (1024*1024*1024) /* big enough ? */
ParameterError file2memory(char **bufp, size_t *size, FILE *file)
{
if(file) {