]> granicus.if.org Git - php/commitdiff
- Fix spprintf usage
authorMarcus Boerger <helly@php.net>
Sat, 24 Feb 2007 14:33:50 +0000 (14:33 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 24 Feb 2007 14:33:50 +0000 (14:33 +0000)
ext/mysqli/php_mysqli.h

index 2e962bd1409f9bc56e264fad1f0cd8371271eacc..812d6b89d2d4bc81a1593760758ac24fb49ea348 100644 (file)
@@ -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);              \
        }                                       \
 }