summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-12-24 17:33:33 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-12-24 17:33:33 +0000
commit0a2d473df0d242b93ef838eb331028768f7faee3 (patch)
tree91068d98bb8f8648fd5e300b4a6e87c6e3a82948 /ext
parenta747d1f864c566c5aa2d463283cf2d796640b77b (diff)
downloadphp-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.c4
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);