diff options
| -rw-r--r-- | ext/standard/user_filters.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/user_filters.c b/ext/standard/user_filters.c index e366d7c929..9a81bd0d78 100644 --- a/ext/standard/user_filters.c +++ b/ext/standard/user_filters.c @@ -284,7 +284,7 @@ static php_stream_filter *user_filter_factory_create(const char *filtername, char *wildcard = emalloc(len + 3); /* Search for wildcard matches instead */ - memcpy(wildname, filtername, len + 1); /* copy \0 */ + memcpy(wildcard, filtername, len + 1); /* copy \0 */ period = wildcard + (period - filtername); while (period) { *period = '\0'; |
