diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-12-24 17:30:48 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-12-24 17:30:48 +0000 |
commit | a747d1f864c566c5aa2d463283cf2d796640b77b (patch) | |
tree | 0c6624fd69bea12616c7b0606aa2f847712cdd29 /ext/ncurses | |
parent | 59b6ffee1ef833543b76e831d5fac19ba68b7f39 (diff) | |
download | php-git-a747d1f864c566c5aa2d463283cf2d796640b77b.tar.gz |
Changed strncpy() to strlcpy().
Diffstat (limited to 'ext/ncurses')
-rw-r--r-- | ext/ncurses/ncurses_functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ncurses/ncurses_functions.c b/ext/ncurses/ncurses_functions.c index c019f34300..d49ab39623 100644 --- a/ext/ncurses/ncurses_functions.c +++ b/ext/ncurses/ncurses_functions.c @@ -1768,7 +1768,7 @@ PHP_FUNCTION(ncurses_termname) IS_NCURSES_INITIALIZED(); - strncpy(temp, termname(), sizeof(temp) - 1); + strlcpy(temp, termname(), sizeof(temp) - 1); temp[sizeof(temp) - 1] = '\0'; RETURN_STRINGL (temp, strlen(temp), 1); @@ -1783,7 +1783,7 @@ PHP_FUNCTION(ncurses_longname) IS_NCURSES_INITIALIZED(); - strncpy(temp, longname(), sizeof(temp) - 1); + strlcpy(temp, longname(), sizeof(temp) - 1); temp[sizeof(temp) - 1] = '\0'; RETURN_STRINGL (temp, strlen(temp), 1); |