1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Gisle Vanem fixed a single-byte overflow

This commit is contained in:
Daniel Stenberg 2003-08-08 17:18:21 +00:00
parent 9273096a8a
commit 12e78a082e

View File

@ -20,7 +20,7 @@ char *appendstring(char *string, /* original string */
{
int len = strlen(buffer);
if((len + *stringlen) > *stralloc) {
if((len + *stringlen) >= *stralloc) {
char *newptr= realloc(string, *stralloc*2);
if(newptr) {
string = newptr;