cvs: php4 /ext/ncurses ncurses_functions.c
| From: | Ilia Alshanetsky | Date: | Tue, 24 Dec 2002 23:19:55 +0000 |
| Subject: | cvs: php4 /ext/ncurses ncurses_functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17396@lists.php.net to get a copy of this message | ||
iliaa Tue Dec 24 18:19:55 2002 EDT
Modified files:
/php4/ext/ncurses ncurses_functions.c
Log:
Removed pointless assignment.
Index: php4/ext/ncurses/ncurses_functions.c
diff -u php4/ext/ncurses/ncurses_functions.c:1.35 php4/ext/ncurses/ncurses_functions.c:1.36
--- php4/ext/ncurses/ncurses_functions.c:1.35 Tue Dec 24 12:33:33 2002
+++ php4/ext/ncurses/ncurses_functions.c Tue Dec 24 18:19:54 2002
@@ -1769,7 +1769,6 @@
IS_NCURSES_INITIALIZED();
strlcpy(temp, termname(), sizeof(temp));
- temp[sizeof(temp) - 1] = '\0';
RETURN_STRINGL (temp, strlen(temp), 1);
}
@@ -1784,7 +1783,6 @@
IS_NCURSES_INITIALIZED();
strlcpy(temp, longname(), sizeof(temp));
- temp[sizeof(temp) - 1] = '\0';
RETURN_STRINGL (temp, strlen(temp), 1);
}