]> granicus.if.org Git - php/commitdiff
Fix the fix for #72403 on nl2br
authorStanislav Malyshev <stas@php.net>
Mon, 27 Jun 2016 19:30:42 +0000 (12:30 -0700)
committerStanislav Malyshev <stas@php.net>
Mon, 27 Jun 2016 19:30:42 +0000 (12:30 -0700)
ext/standard/string.c

index acb6a01087de7758065f036cd91eb79f906a1340..d141b760124d07ad09fd930030c80f7c434dd844 100644 (file)
@@ -4267,7 +4267,7 @@ PHP_FUNCTION(nl2br)
 {
        /* in brief this inserts <br /> or <br> before matched regexp \n\r?|\r\n? */
        char            *tmp, *str;
-       int             new_length;
+       size_t          new_length;
        char            *end, *target;
        int             repl_cnt = 0;
        int             str_len;