From 2e6e0f87dc059d721d12c174412f024b9cd3281a Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 24 Dec 2002 23:19:54 +0000 Subject: Removed pointless assignment. --- ext/ncurses/ncurses_functions.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'ext/ncurses') 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); } -- cgit v1.2.1