From: Marcus Boerger Date: Thu, 18 Jan 2007 23:17:49 +0000 (+0000) Subject: - We want the size here not the length X-Git-Tag: RELEASE_1_0_0RC1~217 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ad7d83a03547c7d5664b3d69c744372528ea6d2;p=php - We want the size here not the length --- 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); }