diff options
Diffstat (limited to 'ext/ncurses/ncurses_functions.c')
| -rw-r--r-- | ext/ncurses/ncurses_functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ncurses/ncurses_functions.c b/ext/ncurses/ncurses_functions.c index fd3e0e82e..d0cb3825a 100644 --- a/ext/ncurses/ncurses_functions.c +++ b/ext/ncurses/ncurses_functions.c @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2006 The PHP Group | + | Copyright (c) 1997-2007 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -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); |
