]> granicus.if.org Git - php/commitdiff
- We want the size here not the length
authorMarcus Boerger <helly@php.net>
Thu, 18 Jan 2007 23:17:49 +0000 (23:17 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 18 Jan 2007 23:17:49 +0000 (23:17 +0000)
ext/date/php_date.c

index 28c25052a98ec4fabf671597ef9c0a8b79850f50..c8069a01e5c936f833e8b126c2b43147aa0a03eb 100644 (file)
@@ -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);
        }