From 9ad7d83a03547c7d5664b3d69c744372528ea6d2 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 18 Jan 2007 23:17:49 +0000 Subject: [PATCH] - We want the size here not the length --- ext/date/php_date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 28c25052a9..c8069a01e5 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -794,7 +794,7 @@ static inline int date_spprintf(char **str, size_t size TSRMLS_DC, const char *f va_start(ap, format); if (UG(unicode)) { - c = vuspprintf(str, size, format, ap); + c = vuspprintf(str, size, format, ap) * 2; } else { c = vspprintf(str, size, format, ap); } -- 2.50.1