summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-11-19 23:09:12 +0000
committerPierre Joye <pajoye@php.net>2011-11-19 23:09:12 +0000
commiteeba0b5681b2178f7a29132c689c672a359e6b53 (patch)
treee5610146eb72133c6cbf90348890603526ec28be
parentd3b20b405831348c1dfab815cda4e5766228cf25 (diff)
downloadphp-git-eeba0b5681b2178f7a29132c689c672a359e6b53.tar.gz
- fix build, ansi c requires constant value, no expresion, even constant var
-rw-r--r--ext/phar/phar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/phar/phar.c b/ext/phar/phar.c
index 81f9d4fad2..ef7936b29b 100644
--- a/ext/phar/phar.c
+++ b/ext/phar/phar.c
@@ -1570,8 +1570,8 @@ 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;
- char buffer[window_size + sizeof(token)]; /* a 1024 byte window + the size of the halt_compiler token (moving window) */
+ const int window_size = 1024 + sizeof(token);
+ 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;
long halt_offset;