diff options
author | Marcus Boerger <helly@php.net> | 2007-02-24 16:25:58 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2007-02-24 16:25:58 +0000 |
commit | 20a40063c51b20c1ea5f48c109b69fea3964b446 (patch) | |
tree | 24d6bf7894cc8080ff86f16eb5efef9da1cdf9c7 /ext/mysqli/php_mysqli.h | |
parent | 10ffce328593ddda1fb31482ec5d19ce6e02556d (diff) | |
download | php-git-20a40063c51b20c1ea5f48c109b69fea3964b446.tar.gz |
- avoid sprintf
Diffstat (limited to 'ext/mysqli/php_mysqli.h')
-rw-r--r-- | ext/mysqli/php_mysqli.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mysqli/php_mysqli.h b/ext/mysqli/php_mysqli.h index 0cf72d0b84..d80fc31c42 100644 --- a/ext/mysqli/php_mysqli.h +++ b/ext/mysqli/php_mysqli.h @@ -257,9 +257,9 @@ PHP_MYSQLI_EXPORT(zend_object_value) mysqli_objects_new(zend_class_entry * TSRML if ((__val) < LONG_MAX) { \ RETURN_LONG((__val)); \ } else { \ - char ret[40]; \ - sprintf(ret, "%llu", (__val)); \ - RETURN_STRING(ret,1); \ + char *ret; \ + int l = spprintf(&ret, 0, "%llu", (__val)); \ + RETURN_STRINGL(ret, l, 0); \ } \ } |