]> granicus.if.org Git - php/commitdiff
@- str_repeat() now returns correct length. (Thies)
authorThies C. Arntzen <thies@php.net>
Tue, 4 Jan 2000 09:45:28 +0000 (09:45 +0000)
committerThies C. Arntzen <thies@php.net>
Tue, 4 Jan 2000 09:45:28 +0000 (09:45 +0000)
ext/standard/string.c

index 7fde764aa3085aebcbd2f17bc913f4a9e380bb76..cb3a1e0ef7ee0efd72bfd752a852cbddb338d3b0 100644 (file)
@@ -2352,7 +2352,7 @@ PHP_FUNCTION(str_repeat)
        }
        result[result_len] = '\0';
        
-       RETURN_STRINGL(result, result_len + 1, 0);
+       RETURN_STRINGL(result, result_len, 0);
 }
 /* }}} */