summaryrefslogtreecommitdiff
path: root/lib/libterm/termcap.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-12 08:54:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-12 08:54:11 +0000
commitd220b73a4ed69c2d9e64898ce1a4a33432df3af6 (patch)
treeb928626b4dc8c6608258d3a96eb56838c29d5ece /lib/libterm/termcap.c
parentff6a6b102917748c5c6dabcf3533c3dc4eea7083 (diff)
let path buf be as big as you expect a path buffer to be
Diffstat (limited to 'lib/libterm/termcap.c')
-rw-r--r--lib/libterm/termcap.c4
1 files changed, 2 insertions, 2 deletions
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);