diff options
Diffstat (limited to 'sha256.c')
| -rw-r--r-- | sha256.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -93,7 +93,7 @@ static PHP_FUNCTION(suhosin_sha256_file) | |||
| 93 | 93 | ||
| 94 | suhosin_SHA256Init(&context); | 94 | suhosin_SHA256Init(&context); |
| 95 | 95 | ||
| 96 | while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { | 96 | while ((n = php_stream_read(stream, (char*)buf, sizeof(buf))) > 0) { |
| 97 | suhosin_SHA256Update(&context, buf, n); | 97 | suhosin_SHA256Update(&context, buf, n); |
| 98 | } | 98 | } |
| 99 | 99 | ||
| @@ -394,7 +394,7 @@ static zend_function_entry suhosin_sha256_functions[] = { | |||
| 394 | void suhosin_hook_sha256(TSRMLS_D) | 394 | void suhosin_hook_sha256(TSRMLS_D) |
| 395 | { | 395 | { |
| 396 | /* check if we already have sha256 support */ | 396 | /* check if we already have sha256 support */ |
| 397 | if (zend_hash_str_find(CG(function_table), "sha256", sizeof("sha256"))) { | 397 | if (zend_hash_str_find(CG(function_table), ZEND_STRL("sha256"))) { |
| 398 | return; | 398 | return; |
| 399 | } | 399 | } |
| 400 | 400 | ||
