From d220b73a4ed69c2d9e64898ce1a4a33432df3af6 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 12 Sep 1997 08:54:11 +0000 Subject: let path buf be as big as you expect a path buffer to be --- lib/libterm/termcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libterm/termcap.c') diff --git a/lib/libterm/termcap.c b/lib/libterm/termcap.c index 64ddb756130..1b8fdf3cf9b 100644 --- a/lib/libterm/termcap.c +++ b/lib/libterm/termcap.c @@ -80,7 +80,7 @@ tgetent(bp, name) char **fname; char *home; int i; - char pathbuf[PBUFSIZ+1]; /* holds raw path of filenames */ + char pathbuf[MAXPATHLEN]; /* holds raw path of filenames */ char *pathvec[PVECSIZ]; /* to point to names in pathbuf */ char **pvec; /* holds usable tail of path vector */ char *termpath; @@ -143,7 +143,7 @@ tgetent(bp, name) return (-2); dummy = NULL; - i = cgetent(&dummy, pathvec, name); + i = cgetent(&dummy, pathvec, name); if (i == 0 && bp != NULL) { strncpy(bp, dummy, 1023); -- cgit v1.2.3