Re: svn: /php/php-src/ branches/PHP_5_3/ext/phar/phar.c branches/PHP_5_4/ext/phar/phar.c trunk/ext/phar/phar.c

From: Date: Sun, 20 Nov 2011 09:51:26 +0000
Subject: Re: svn: /php/php-src/ branches/PHP_5_3/ext/phar/phar.c branches/PHP_5_4/ext/phar/phar.c trunk/ext/phar/phar.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-67060@lists.php.net to get a copy of this message
On Sun, Nov 20, 2011 at 00:09, Pierre Joye <pajoye@php.net> wrote: > pajoye                                   Sat, 19 Nov 2011 23:09:12 +0000 > > Revision: > http://svn.php.net/viewvc?view=revision&revision=319566 > > Log: > - fix build, ansi c requires constant value, no expresion, even constant var > > Changed paths: >    U   php/php-src/branches/PHP_5_3/ext/phar/phar.c >    U   php/php-src/branches/PHP_5_4/ext/phar/phar.c >    U   php/php-src/trunk/ext/phar/phar.c > > Modified: php/php-src/branches/PHP_5_3/ext/phar/phar.c > =================================================================== > --- php/php-src/branches/PHP_5_3/ext/phar/phar.c        2011-11-19 23:04:42 UTC (rev > 319565) > +++ php/php-src/branches/PHP_5_3/ext/phar/phar.c        2011-11-19 23:09:12 UTC (rev > 319566) > @@ -1570,8 +1570,8 @@ >        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) */ Was the change in the window_size intentional? -Hannes

« previous php.cvs (#67060) next »