diff options
author | Andrei Zmievski <andrei@php.net> | 1999-12-10 04:44:32 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 1999-12-10 04:44:32 +0000 |
commit | d18ff45c4cb5f95d79113f027ce0b9d5b734b458 (patch) | |
tree | d120ab44705fab685caffd83afeedee6faf13c69 | |
parent | a14d2ce1b2fd95b3f02cf84829a2d6f2fe40056c (diff) | |
download | php-git-d18ff45c4cb5f95d79113f027ce0b9d5b734b458.tar.gz |
A few more fixes for php_strtolower().
-rw-r--r-- | ext/standard/string.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index 53b6a9063a..d6494c5536 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -425,6 +425,7 @@ PHPAPI char *php_strtolower(char *s, size_t len) { register int ch; char *c; + int i; c = s; for (i=0; i<len; i++) { @@ -2161,7 +2162,7 @@ PHPAPI void php_strip_tags(char *rbuf, int len, int state, char *allow) { rp = rbuf; br = 0; if(allow) { - php_strtolower(allow); + php_strtolower(allow, len); tbuf = emalloc(PHP_TAG_BUF_SIZE+1); tp = tbuf; } else { |