]> granicus.if.org Git - php/commitdiff
fix #36038 (ext/hash compile failure on Mac OSX)
authorAntony Dovgal <tony2001@php.net>
Mon, 16 Jan 2006 23:03:41 +0000 (23:03 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 16 Jan 2006 23:03:41 +0000 (23:03 +0000)
ext/hash/php_hash.h

index 6f4891ae3f68e9f67488b05fb041a3c62472b5ba..4587f2b518db4beb5135d660fc2a8b672eeb7e6a 100644 (file)
@@ -122,7 +122,7 @@ PHP_HASH_API void php_hash_register_algo(const char *algo, php_hash_ops *ops);
 
 static inline void php_hash_bin2hex(char *out, const unsigned char *in, int in_len)
 {
-       static const char hexits[16] = "0123456789abcdef";
+       static const char hexits[17] = "0123456789abcdef";
        int i;
 
        for(i = 0; i < in_len; i++) {