aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-22 15:26:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-22 15:26:30 +0000
commit84406b3e2cd887b2e162345a49d5ffaf3e0f43ec (patch)
treefa02045ae1bde7324250789ea0e5b19eced097b1 /src
parentc323969bdd31ec1a397a68b51f847b03f2bd4036 (diff)
allow newlines in the contents when doing -F "var=[contents]"
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
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;