From b763dd42c34e6f37df104032206af1f4fe55681c Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Mon, 3 Nov 2003 11:46:33 +0000 Subject: [PATCH] Fixed possible crashbug. --- main/rfc1867.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.50.1