From: Pierre Joye Date: Fri, 4 Jul 2008 21:00:16 +0000 (+0000) Subject: - fix compile error with vc6 (snaps) X-Git-Tag: php-5.3.0alpha1~508 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=581c48c2a09263f58903ed5f5c615393bec46a62;p=php - fix compile error with vc6 (snaps) --- diff --git a/ext/hash/hash.c b/ext/hash/hash.c index a221f0a884..03a69cc005 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -621,7 +621,7 @@ static void mhash_init(INIT_FUNC_ARGS) len = slprintf(buf, 127, "MHASH_%s", algorithm.mhash_name, strlen(algorithm.mhash_name)); { - char name[len+1]; + char name[128]; memcpy(name, buf, len+1); REGISTER_LONG_CONSTANT(name, algorithm.value, CONST_CS | CONST_PERSISTENT); }