diff options
| author | Stefan Esser | 2012-02-12 10:57:29 +0100 |
|---|---|---|
| committer | Stefan Esser | 2012-02-12 10:57:29 +0100 |
| commit | a20e7b6842d95de535da4448bd4302dedf23d25d (patch) | |
| tree | c19d00c47a4a6fc6124e160ea94004acbd19c840 /ifilter.c | |
| parent | af51a7f576f0cec1d2c94b9bbb3dfb46dd466a66 (diff) | |
Fix some compiler warnings
Diffstat (limited to 'ifilter.c')
| -rw-r--r-- | ifilter.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -146,7 +146,7 @@ static void suhosin_server_strip(HashTable *arr, char *key, int klen) | |||
| 146 | if (zend_hash_find(arr, key, klen, (void **) &tzval) == SUCCESS && | 146 | if (zend_hash_find(arr, key, klen, (void **) &tzval) == SUCCESS && |
| 147 | Z_TYPE_PP(tzval) == IS_STRING) { | 147 | Z_TYPE_PP(tzval) == IS_STRING) { |
| 148 | 148 | ||
| 149 | s = t = Z_STRVAL_PP(tzval); | 149 | s = t = (unsigned char *)Z_STRVAL_PP(tzval); |
| 150 | for (; *t; t++) { | 150 | for (; *t; t++) { |
| 151 | if (suhosin_is_dangerous_char[*t]) { | 151 | if (suhosin_is_dangerous_char[*t]) { |
| 152 | *t = '?'; | 152 | *t = '?'; |
| @@ -168,7 +168,7 @@ static void suhosin_server_encode(HashTable *arr, char *key, int klen) | |||
| 168 | if (zend_hash_find(arr, key, klen, (void **) &tzval) == SUCCESS && | 168 | if (zend_hash_find(arr, key, klen, (void **) &tzval) == SUCCESS && |
| 169 | Z_TYPE_PP(tzval) == IS_STRING) { | 169 | Z_TYPE_PP(tzval) == IS_STRING) { |
| 170 | 170 | ||
| 171 | temp = Z_STRVAL_PP(tzval); | 171 | temp = (unsigned char *)Z_STRVAL_PP(tzval); |
| 172 | 172 | ||
| 173 | t = temp; | 173 | t = temp; |
| 174 | for (t = temp; *t; t++) { | 174 | for (t = temp; *t; t++) { |
| @@ -195,7 +195,7 @@ static void suhosin_server_encode(HashTable *arr, char *key, int klen) | |||
| 195 | } | 195 | } |
| 196 | *n = 0; | 196 | *n = 0; |
| 197 | 197 | ||
| 198 | Z_STRVAL_PP(tzval) = newv; | 198 | Z_STRVAL_PP(tzval) = (char *)newv; |
| 199 | Z_STRLEN_PP(tzval) = n-newv; | 199 | Z_STRLEN_PP(tzval) = n-newv; |
| 200 | } | 200 | } |
| 201 | } | 201 | } |
