]> granicus.if.org Git - php/commitdiff
MFB(r-1.18.2.5.2.7) Use slprintf() instead of snprintf() - Bad Ilia, no biscuit for...
authorSara Golemon <pollita@php.net>
Sat, 26 May 2007 03:56:41 +0000 (03:56 +0000)
committerSara Golemon <pollita@php.net>
Sat, 26 May 2007 03:56:41 +0000 (03:56 +0000)
ext/hash/hash.c

index 52535fc59293f1dd2d1c3e2430d4a032f337578b..2b96fc73c5faff00d58b1bf083e2193a86d8d495 100644 (file)
@@ -751,9 +751,9 @@ PHP_MINFO_FUNCTION(hash)
                (type = zend_hash_get_current_key_ex(&php_hash_hashtable, &str, NULL, &idx, 0, &pos)) != HASH_KEY_NON_EXISTANT;
                zend_hash_move_forward_ex(&php_hash_hashtable, &pos)) {
 #if (PHP_MAJOR_VERSION >= 6)
-               s += snprintf(s, e - s, "%s ", str.s);
+               s += slprintf(s, e - s, "%s ", str.s);
 #else
-               s += snprintf(s, e - s, "%s ", str);
+               s += slprintf(s, e - s, "%s ", str);
 #endif
        }
        *s = 0;