diff options
author | imp <imp@FreeBSD.org> | 1998-09-11 05:44:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1998-09-11 05:44:41 +0000 |
commit | d904438e7bbdfb41e35287581356b474b5adf158 (patch) | |
tree | 5f3f8e9fdcb6efd5255256b890242ad915718199 /lib/libtermcap/termcap.c | |
parent | 7085d1ce9f2868a2f170e8e81da04d4da995ad6f (diff) | |
download | FreeBSD-src-d904438e7bbdfb41e35287581356b474b5adf158.zip FreeBSD-src-d904438e7bbdfb41e35287581356b474b5adf158.tar.gz |
Define PBUFSIZ in terms of MAXPATHLEN rather than hard coding it to
512.
Obtained, I think, from: OpenBSD
Diffstat (limited to 'lib/libtermcap/termcap.c')
-rw-r--r-- | lib/libtermcap/termcap.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libtermcap/termcap.c b/lib/libtermcap/termcap.c index 0428a45..7ce5f72 100644 --- a/lib/libtermcap/termcap.c +++ b/lib/libtermcap/termcap.c @@ -35,22 +35,23 @@ static char sccsid[] = "@(#)termcap.c 8.1 (Berkeley) 6/4/93"; #endif /* not lint */ -#define PBUFSIZ 512 /* max length of filename path */ -#define PVECSIZ 32 /* max number of names in path */ -#define TBUFSIZ 1024 /* max length of tgetent buffer */ - #include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <termios.h> +#include <sys/param.h> #include <signal.h> #include <errno.h> #include <sys/syscall.h> #include "termcap.h" #include "pathnames.h" +#define PBUFSIZ MAXPATHLEN /* max length of filename path */ +#define PVECSIZ 32 /* max number of names in path */ +#define TBUFSIZ 1024 /* max length of tgetent buffer */ + /* * termcap - routines for dealing with the terminal capability data base * |