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

This commit is contained in:
Daniel Stenberg 2001-11-08 15:06:58 +00:00
parent 6ebac3dc76
commit 0ffec712e1
1 changed files with 1 additions and 1 deletions

View File

@ -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 */