com php-src: fix datatype to hold read bytes: ext/hash/hash.c
| From: | Anatol Belski | Date: | Tue, 17 Dec 2013 09:20:34 +0000 |
| Subject: | com php-src: fix datatype to hold read bytes: ext/hash/hash.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74476@lists.php.net to get a copy of this message | ||
Commit: 83edc59d13132e8f7cd2590c5b339ea1142a86b8
Author: Anatol Belski <ab@php.net> Tue, 17 Dec 2013 10:20:34 +0100
Parents: dc45cfe4018e22d524ced208b3ecba0674ab5b02
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=83edc59d13132e8f7cd2590c5b339ea1142a86b8
Log:
fix datatype to hold read bytes
Changed paths:
M ext/hash/hash.c
Diff:
diff --git a/ext/hash/hash.c b/ext/hash/hash.c
index b4d48ff..cecfcd5 100644
--- a/ext/hash/hash.c
+++ b/ext/hash/hash.c
@@ -157,7 +157,7 @@ static void php_hash_do_hash(INTERNAL_FUNCTION_PARAMETERS, int isfilename, zend_
if (isfilename) {
char buf[1024];
- int n;
+ zend_str_size_int n;
while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) {
ops->hash_update(context, (unsigned char *) buf, n);