diff options
author | Richard Lowe <richlowe@richlowe.net> | 2021-03-04 20:10:47 -0600 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2021-03-09 14:57:24 -0600 |
commit | 2587b3a0593a431a99cc2dc78bf1034e672a35e2 (patch) | |
tree | 5f7a8f7533757c2c234e22dbf7fff1c783204e76 /usr/src/cmd/tic/tic_read.c | |
parent | d893e05e2a64324d7059baefcbf7bd9872a32ad9 (diff) | |
download | illumos-joyent-2587b3a0593a431a99cc2dc78bf1034e672a35e2.tar.gz |
13606 tic(1) writes uninitialized data to some terminfo entries
Reviewed by: Andy Fiddaman <andy@omnios.org>
Reviewed by: Jason King <jason.brian.king+illumos@gmail.com>
Approved by: Robert Mustacchi <rm@fingolfin.org>
Diffstat (limited to 'usr/src/cmd/tic/tic_read.c')
-rw-r--r-- | usr/src/cmd/tic/tic_read.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/usr/src/cmd/tic/tic_read.c b/usr/src/cmd/tic/tic_read.c index b6acd1d7ce..b1d017cb15 100644 --- a/usr/src/cmd/tic/tic_read.c +++ b/usr/src/cmd/tic/tic_read.c @@ -38,8 +38,6 @@ * contributors. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * ******************************************************************** * COPYRIGHT NOTICE * @@ -91,7 +89,12 @@ #include <sys/types.h> #include <sys/stat.h> +#include <sys/types.h> +#include <sys/stat.h> + +#include <fcntl.h> #include <stdlib.h> +#include <unistd.h> #include "curses_inc.h" #include "object.h" @@ -115,12 +118,15 @@ static char TermNames[128]; /* Buffer for terminal names for first term */ static char StringTable[2048]; /* String table for first terminal */ static int beencalled = 0; /* read_entry has been called before */ +extern void err_abort(char *, ...); +extern void syserr_abort(char *, ...); +extern void warning(char *, ...); + +int must_swap(void); + int -read_entry(filename, bptr, nptr, sptr) -char *filename; -struct _bool_struct *bptr; -struct _num_struct *nptr; -struct _str_struct *sptr; +read_entry(char *filename, struct _bool_struct *bptr, struct _num_struct *nptr, + struct _str_struct *sptr) { int fd; int numread; |