diff options
author | Pierre Joye <pajoye@php.net> | 2008-07-04 21:00:16 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2008-07-04 21:00:16 +0000 |
commit | 581c48c2a09263f58903ed5f5c615393bec46a62 (patch) | |
tree | 2f0159e5188de3e8be1c4f318b8d4c03750f2a8d /ext/hash | |
parent | 543f015d5252aa00454cb17fea0d90967b45be36 (diff) | |
download | php-git-581c48c2a09263f58903ed5f5c615393bec46a62.tar.gz |
- fix compile error with vc6 (snaps)
Diffstat (limited to 'ext/hash')
-rw-r--r-- | ext/hash/hash.c | 2 |
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); } |