diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-11-08 15:06:58 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-11-08 15:06:58 +0000 |
commit | 0ffec712e1b6479ff236d387c3d6b17d66f61881 (patch) | |
tree | 79eae4ab5ea80132c08feb9cc8dbab5d7cfcf983 | |
parent | 6ebac3dc7608b08c943b3b6d7fb47678babe2ddc (diff) |
Marcus Webster reported and fixed this read-one-byte-too-many problem...
-rw-r--r-- | lib/formdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/formdata.c b/lib/formdata.c index e0c487dc6..ef5e15374 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -923,7 +923,7 @@ static int AddFormData(struct FormData **formp, length = strlen((char *)line); newform->line = (char *)malloc(length+1); - memcpy(newform->line, line, length+1); + memcpy(newform->line, line, length); newform->length = length; newform->line[length]=0; /* zero terminate for easier debugging */ |