summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysql_float_to_double.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysqlnd/mysql_float_to_double.h')
-rw-r--r--ext/mysqlnd/mysql_float_to_double.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysql_float_to_double.h b/ext/mysqlnd/mysql_float_to_double.h
index dda65017f3..0690a4c498 100644
--- a/ext/mysqlnd/mysql_float_to_double.h
+++ b/ext/mysqlnd/mysql_float_to_double.h
@@ -42,7 +42,7 @@ static inline double mysql_float_to_double(float fp4, int decimals) {
if (decimals < 0) {
php_gcvt(fp4, FLT_DIG, '.', 'e', num_buf);
} else {
- php_sprintf(num_buf, "%.*f", decimals, fp4);
+ sprintf(num_buf, "%.*f", decimals, fp4);
}
return zend_strtod(num_buf, NULL);