mirror of
https://github.com/php/php-src.git
synced 2025-01-20 18:53:37 +08:00
fix weird strlen() usage
This commit is contained in:
parent
6c50fa955b
commit
807a0966a9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user