summaryrefslogtreecommitdiff
path: root/ext/filter/sanitizing_filters.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2011-09-05 15:02:21 +0000
committerXinchen Hui <laruence@php.net>2011-09-05 15:02:21 +0000
commit83f61c2c536935da2d1f03d462d99b4681f7f832 (patch)
tree5a64a3ec293e435a0a9110abb430bd3951f58a97 /ext/filter/sanitizing_filters.c
parent50d8d816c54fcb6c43b9ef29c01b910c4522f3e6 (diff)
downloadphp-git-83f61c2c536935da2d1f03d462d99b4681f7f832.tar.gz
Fixed compiler warning "incompatible pointer type"
Diffstat (limited to 'ext/filter/sanitizing_filters.c')
-rw-r--r--ext/filter/sanitizing_filters.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/filter/sanitizing_filters.c b/ext/filter/sanitizing_filters.c
index b0348dbef5..dba4251b06 100644
--- a/ext/filter/sanitizing_filters.c
+++ b/ext/filter/sanitizing_filters.c
@@ -250,7 +250,8 @@ void php_filter_special_chars(PHP_INPUT_FILTER_PARAM_DECL)
void php_filter_full_special_chars(PHP_INPUT_FILTER_PARAM_DECL)
{
char *buf;
- int len, quotes;
+ size_t len;
+ int quotes;
if (!(flags & FILTER_FLAG_NO_ENCODE_QUOTES)) {
quotes = ENT_QUOTES;