summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/rfc1867.c4
1 files 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;