From: Daniel Stenberg Date: Thu, 8 Nov 2001 15:06:58 +0000 (+0000) Subject: Marcus Webster reported and fixed this read-one-byte-too-many problem... X-Git-Tag: curl-7_9_2~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ffec712e1b6479ff236d387c3d6b17d66f61881;p=curl Marcus Webster reported and fixed this read-one-byte-too-many problem... --- 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 */