diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-22 15:26:30 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-22 15:26:30 +0000 |
commit | 84406b3e2cd887b2e162345a49d5ffaf3e0f43ec (patch) | |
tree | fa02045ae1bde7324250789ea0e5b19eced097b1 /src | |
parent | c323969bdd31ec1a397a68b51f847b03f2bd4036 (diff) |
allow newlines in the contents when doing -F "var=[contents]"
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |