Skip to content
Snippets Groups Projects
Commit 0ffec712 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Marcus Webster reported and fixed this read-one-byte-too-many problem...

parent 6ebac3dc
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment