From 84406b3e2cd887b2e162345a49d5ffaf3e0f43ec Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 22 Apr 2004 15:26:30 +0000 Subject: allow newlines in the contents when doing -F "var=[contents]" --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index f0213ee96..95cb5f92e 100644 --- a/src/main.c +++ b/src/main.c @@ -767,7 +767,7 @@ static int formparse(char *input, contents = malloc(strlen(input)); contents[0] = '\000'; - if(1 <= sscanf(input, "%255[^=]=%[^\n]", name, contents)) { + if(1 <= sscanf(input, "%255[^=]=%s", name, contents)) { /* the input was using the correct format */ contp = contents; -- cgit v1.2.3