mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:43:31 +03:00
tool_getparam: replace malloc + copy by dynbuf for --data
This commit is contained in:
parent
f37840a46e
commit
1dba44b2f1
4 changed files with 18 additions and 29 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue