sesser Mon Nov 3 06:46:34 2003 EDT Modified files: /php-src/main rfc1867.c Log: Fixed possible crashbug. Index: php-src/main/rfc1867.c diff -u php-src/main/rfc1867.c:1.143 php-src/main/rfc1867.c:1.144 --- php-src/main/rfc1867.c:1.143 Mon Nov 3 04:16:24 2003 +++ php-src/main/rfc1867.c Mon Nov 3 06:46:33 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: rfc1867.c,v 1.143 2003/11/03 09:16:24 sesser Exp $ */ +/* $Id: rfc1867.c,v 1.144 2003/11/03 11:46:33 sesser Exp $ */ /* * This product includes software developed by the Apache Group @@ -139,7 +139,7 @@ /* 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 @@ 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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php