diff options
| author | Pierre Joye <pajoye@php.net> | 2011-11-20 10:10:43 +0000 |
|---|---|---|
| committer | Pierre Joye <pajoye@php.net> | 2011-11-20 10:10:43 +0000 |
| commit | f330c8ab4e8458bdff2ff5773cbcb38a7ff6bd46 (patch) | |
| tree | d7eb0d7298dbf77f945213339b44d486423cf2aa /ext | |
| parent | eeba0b5681b2178f7a29132c689c672a359e6b53 (diff) | |
| download | php-git-f330c8ab4e8458bdff2ff5773cbcb38a7ff6bd46.tar.gz | |
- restore correct window_size
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/phar/phar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/phar/phar.c b/ext/phar/phar.c index ef7936b29b..5fd65871e9 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -1570,7 +1570,7 @@ static int phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *a const char gz_magic[] = "\x1f\x8b\x08"; const char bz_magic[] = "BZh"; char *pos, test = '\0'; - const int window_size = 1024 + sizeof(token); + const int window_size = 1024; char buffer[1024 + sizeof(token)]; /* a 1024 byte window + the size of the halt_compiler token (moving window) */ const long readsize = sizeof(buffer) - sizeof(token); const long tokenlen = sizeof(token) - 1; |
