]> granicus.if.org Git - php/commitdiff
fix build
authorPierre Joye <pierre.php@gmail.com>
Thu, 15 May 2014 07:38:26 +0000 (09:38 +0200)
committerPierre Joye <pierre.php@gmail.com>
Thu, 15 May 2014 07:38:26 +0000 (09:38 +0200)
ext/date/php_date.c

index 31cb41adfdfd3c8355ccae6ff86d79e6410ed3c1..3d203eb2275d3d6365e482f415657398792ab4b9 100644 (file)
@@ -1694,7 +1694,7 @@ PHPAPI void php_strftime(INTERNAL_FUNCTION_PARAMETERS, int gmt)
        /* VS2012 strftime() returns number of characters, not bytes.
                See VC++11 bug id 766205. */
        if (real_len > 0) {
-               real_len = strlen(buf);
+               real_len = buf->len;
        }
 #endif