summaryrefslogtreecommitdiff
path: root/ext/ncurses
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-12-24 23:19:54 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-12-24 23:19:54 +0000
commit2e6e0f87dc059d721d12c174412f024b9cd3281a (patch)
tree0531e1f91507a5e03a63ed51c9ee48bd4556c0b6 /ext/ncurses
parent0a2d473df0d242b93ef838eb331028768f7faee3 (diff)
downloadphp-git-2e6e0f87dc059d721d12c174412f024b9cd3281a.tar.gz
Removed pointless assignment.
Diffstat (limited to 'ext/ncurses')
-rw-r--r--ext/ncurses/ncurses_functions.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/ncurses/ncurses_functions.c b/ext/ncurses/ncurses_functions.c
index afb4115e7b..325a65c46f 100644
--- a/ext/ncurses/ncurses_functions.c
+++ b/ext/ncurses/ncurses_functions.c
@@ -1769,7 +1769,6 @@ PHP_FUNCTION(ncurses_termname)
IS_NCURSES_INITIALIZED();
strlcpy(temp, termname(), sizeof(temp));
- temp[sizeof(temp) - 1] = '\0';
RETURN_STRINGL (temp, strlen(temp), 1);
}
@@ -1784,7 +1783,6 @@ PHP_FUNCTION(ncurses_longname)
IS_NCURSES_INITIALIZED();
strlcpy(temp, longname(), sizeof(temp));
- temp[sizeof(temp) - 1] = '\0';
RETURN_STRINGL (temp, strlen(temp), 1);
}