From: Antony Dovgal Date: Mon, 25 Dec 2006 21:18:11 +0000 (+0000) Subject: MF52 X-Git-Tag: php-4.4.5RC1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95f42dfa20787aded426a1cc5b721249459e5088;p=php MF52 --- diff --git a/ext/ncurses/ncurses_functions.c b/ext/ncurses/ncurses_functions.c index 5fa874f0a8..7631d1f842 100644 --- a/ext/ncurses/ncurses_functions.c +++ b/ext/ncurses/ncurses_functions.c @@ -1491,7 +1491,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);