diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-12-24 17:33:33 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-12-24 17:33:33 +0000 |
commit | 0a2d473df0d242b93ef838eb331028768f7faee3 (patch) | |
tree | 91068d98bb8f8648fd5e300b4a6e87c6e3a82948 /ext | |
parent | a747d1f864c566c5aa2d463283cf2d796640b77b (diff) | |
download | php-git-0a2d473df0d242b93ef838eb331028768f7faee3.tar.gz |
The -1 is no longer needed, since it is done automatically by strlcpy().
Diffstat (limited to 'ext')
-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 d49ab39623..afb4115e7b 100644 --- a/ext/ncurses/ncurses_functions.c +++ b/ext/ncurses/ncurses_functions.c @@ -1768,7 +1768,7 @@ PHP_FUNCTION(ncurses_termname) IS_NCURSES_INITIALIZED(); - strlcpy(temp, termname(), sizeof(temp) - 1); + strlcpy(temp, termname(), sizeof(temp)); temp[sizeof(temp) - 1] = '\0'; RETURN_STRINGL (temp, strlen(temp), 1); @@ -1783,7 +1783,7 @@ PHP_FUNCTION(ncurses_longname) IS_NCURSES_INITIALIZED(); - strlcpy(temp, longname(), sizeof(temp) - 1); + strlcpy(temp, longname(), sizeof(temp)); temp[sizeof(temp) - 1] = '\0'; RETURN_STRINGL (temp, strlen(temp), 1); |