summaryrefslogtreecommitdiff
path: root/ext/hash
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2008-07-04 21:00:16 +0000
committerPierre Joye <pajoye@php.net>2008-07-04 21:00:16 +0000
commit581c48c2a09263f58903ed5f5c615393bec46a62 (patch)
tree2f0159e5188de3e8be1c4f318b8d4c03750f2a8d /ext/hash
parent543f015d5252aa00454cb17fea0d90967b45be36 (diff)
downloadphp-git-581c48c2a09263f58903ed5f5c615393bec46a62.tar.gz
- fix compile error with vc6 (snaps)
Diffstat (limited to 'ext/hash')
-rw-r--r--ext/hash/hash.c2
1 files changed, 1 insertions, 1 deletions
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);
}