diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-23 19:31:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-23 19:31:27 +0000 |
commit | a5b0c83fb53183d517e806c2e4c87c04b656a44d (patch) | |
tree | d72fe700f58679e5591d0952f4cc083cde39f4b7 /lib/libcurses/lib_mvcur.c | |
parent | 21a29d52ea7c13c8aa53e960ceed02425353aece (diff) |
buffer overflows which never ever happen; brian@firehouse.net
Diffstat (limited to 'lib/libcurses/lib_mvcur.c')
-rw-r--r-- | lib/libcurses/lib_mvcur.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcurses/lib_mvcur.c b/lib/libcurses/lib_mvcur.c index 51308009204..2281faf238c 100644 --- a/lib/libcurses/lib_mvcur.c +++ b/lib/libcurses/lib_mvcur.c @@ -1125,7 +1125,7 @@ static int roll(int n) int main(int argc, char *argv[]) { - (void) strcpy(tname, getenv("TERM")); + (void) strncpy(tname, getenv("TERM"), sizeof tname-1); load_term(); _nc_setupscreen(lines, columns); baudrate(); @@ -1201,7 +1201,7 @@ int main(int argc, char *argv[]) } else if (buf[0] == 'r') { - (void) strcpy(tname, getenv("TERM")); + (void) strncpy(tname, getenv("TERM"), sizeof tname-1); load_term(); } else if (sscanf(buf, "l %s", tname) == 1) |