diff options
| author | Stefan Esser <sesser@php.net> | 2003-11-03 11:46:33 +0000 |
|---|---|---|
| committer | Stefan Esser <sesser@php.net> | 2003-11-03 11:46:33 +0000 |
| commit | b763dd42c34e6f37df104032206af1f4fe55681c (patch) | |
| tree | 1b160c7e8c7525c6044d73e4fca3f5b813ba26df | |
| parent | 22872bb8fa2e6355c5be574d77d22dd2825ed86b (diff) | |
| download | php-git-b763dd42c34e6f37df104032206af1f4fe55681c.tar.gz | |
Fixed possible crashbug.
| -rw-r--r-- | main/rfc1867.c | 4 |
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; |
