gschlossnagle Tue Feb 24 16:49:29 2004 EDT Modified files: /php-src/ext/standard pack.c Log: fix for bug 27384 http://cvs.php.net/diff.php/php-src/ext/standard/pack.c?r1=1.51&r2=1.52&ty=u Index: php-src/ext/standard/pack.c diff -u php-src/ext/standard/pack.c:1.51 php-src/ext/standard/pack.c:1.52 --- php-src/ext/standard/pack.c:1.51 Thu Jan 8 03:17:33 2004 +++ php-src/ext/standard/pack.c Tue Feb 24 16:49:28 2004 @@ -15,7 +15,7 @@ | Author: Chris Schneider <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: pack.c,v 1.51 2004/01/08 08:17:33 andi Exp $ */ +/* $Id: pack.c,v 1.52 2004/02/24 21:49:28 gschlossnagle Exp $ */ #include "php.h" @@ -640,7 +640,7 @@ /* Space for name + number, safe as namelen is ensured <= 200 */ char n[256]; - if (arg != 1) { + if (arg != 1 || namelen == 0) { /* Need to add element number to name */ sprintf(n, "%.*s%d", namelen, name, i + 1); } else {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php