From: Marcus Boerger Date: Sat, 24 Feb 2007 14:33:50 +0000 (+0000) Subject: - Fix spprintf usage X-Git-Tag: php-5.2.2RC1~295 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2c343a3dff6a2772f0b77516d0baf658e0ebb22;p=php - Fix spprintf usage --- diff --git a/ext/mysqli/php_mysqli.h b/ext/mysqli/php_mysqli.h index 2e962bd140..812d6b89d2 100644 --- a/ext/mysqli/php_mysqli.h +++ b/ext/mysqli/php_mysqli.h @@ -244,7 +244,7 @@ PHP_MYSQLI_EXPORT(zend_object_value) mysqli_objects_new(zend_class_entry * TSRML RETURN_LONG((__val)); \ } else { \ char *ret; \ - int l = spprintf(ret, "%llu", (__val)); \ + int l = spprintf(&ret, 0, "%llu", (__val)); \ RETURN_STRINGL(ret, l, 0); \ } \ }