fix weird strlen() usage

This commit is contained in:
Antony Dovgal 2006-12-25 21:18:01 +00:00
parent 6c50fa955b
commit 807a0966a9

View 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);