From: Pierre Joye Date: Fri, 4 Jul 2008 21:01:26 +0000 (+0000) Subject: - MFB: fix compile error with VC6 X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1400 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dad71addef09111eb46392e05ef2b8273b7b50d1;p=php - MFB: fix compile error with VC6 --- diff --git a/ext/hash/hash.c b/ext/hash/hash.c index 7f446c31c2..1a6b6537dc 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -790,7 +790,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); }