]> granicus.if.org Git - php/commitdiff
Better storage size for output length.
authorIlia Alshanetsky <iliaa@php.net>
Mon, 6 Jun 2005 16:30:46 +0000 (16:30 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 6 Jun 2005 16:30:46 +0000 (16:30 +0000)
# Thanks to Stefan for noticing the problem.

ext/bz2/bz2.c

index db2cc52b313967f692524b577f00de7702ed9301..fe780fc2529a199e9db28b81c853d095a5ad97ef 100644 (file)
@@ -441,7 +441,7 @@ PHP_FUNCTION(bzdecompress)
        char *source, *dest;
        int source_len, error;
        long small = 0;
-       unsigned int size = 0;
+       unsigned long long size = 0;
        bz_stream bzs;
 
        if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &source, &source_len, &small)) {