]> granicus.if.org Git - php/commitdiff
Removed pointless assignment.
authorIlia Alshanetsky <iliaa@php.net>
Tue, 24 Dec 2002 23:19:54 +0000 (23:19 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 24 Dec 2002 23:19:54 +0000 (23:19 +0000)
ext/ncurses/ncurses_functions.c

index afb4115e7b3c0a6e5f141620d27c4b38f6a28aff..325a65c46f18bce1474408381f67efddf01fc3c1 100644 (file)
@@ -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);
 }