]> granicus.if.org Git - php/commitdiff
fix weird strlen() usage
authorAntony Dovgal <tony2001@php.net>
Mon, 25 Dec 2006 21:18:01 +0000 (21:18 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 25 Dec 2006 21:18:01 +0000 (21:18 +0000)
ext/ncurses/ncurses_functions.c

index fd3e0e82ea715c69cc172e6235f46e104ef73083..6f4bf38ed79f2df3ec8a82b99419094b24024a6d 100644 (file)
@@ -1473,7 +1473,7 @@ PHP_FUNCTION(ncurses_instr)
        str = (char *)emalloc(COLS + 1);
        retval = instr(str);
 
-       ZVAL_STRING(param, str, strlen(str));
+       ZVAL_STRING(param, str, 1);
        efree(str);
 
        RETURN_LONG(retval);