summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}