Browse Source

MFB(r-1.18.2.5.2.7) Use slprintf() instead of snprintf() - Bad Ilia, no biscuit for you.

PHAR_1_2
Sara Golemon 19 years ago
parent
commit
bfc19a1411
  1. 4
      ext/hash/hash.c

4
ext/hash/hash.c

@ -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;

Loading…
Cancel
Save