]> granicus.if.org Git - php/commitdiff
Fix nl2br crash.
authorAndrei Zmievski <andrei@php.net>
Thu, 30 Sep 1999 20:03:32 +0000 (20:03 +0000)
committerAndrei Zmievski <andrei@php.net>
Thu, 30 Sep 1999 20:03:32 +0000 (20:03 +0000)
ext/standard/string.c

index b382cc4d4e47a7036f7cdc74b781542b2f67358c..54343085fe2c8eeecaf5bb99cf2ef85cbfdbd662 100644 (file)
@@ -1755,7 +1755,7 @@ PHP_FUNCTION(nl2br)
 {
        pval **str;
        
-       if (ARG_COUNT(ht)!=1 || getParametersEx(ht, 1, &str)==FAILURE) {
+       if (ARG_COUNT(ht)!=1 || getParametersEx(1, &str)==FAILURE) {
                WRONG_PARAM_COUNT;
        }