From: Stefan Esser Date: Mon, 3 Nov 2003 11:46:33 +0000 (+0000) Subject: Fixed possible crashbug. X-Git-Tag: php-5.0.0b3RC1~791 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b763dd42c34e6f37df104032206af1f4fe55681c;p=php Fixed possible crashbug. --- diff --git a/main/rfc1867.c b/main/rfc1867.c index 3c1a21c82e..e67973d15d 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -139,7 +139,7 @@ static void normalize_protected_variable(char *varname TSRMLS_DC) /* and remove it */ if (s != varname) { - memcpy(varname, s, strlen(s)+1); + memmove(varname, s, strlen(s)+1); } for (p=varname; *p && *p != '['; p++) { @@ -170,7 +170,7 @@ static void normalize_protected_variable(char *varname TSRMLS_DC) indexend = indexend ? indexend + 1 : index + strlen(index); if (s != index) { - memcpy(s, index, strlen(s)+1); + memmove(s, index, strlen(index)+1); s += indexend-index; } else { s = indexend;