summaryrefslogtreecommitdiff
path: root/usr.bin/tip/tip.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-08-22 22:42:09 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-08-22 22:42:09 +0000
commit694acc4a6c2fb493ee460481c76c8d9a6e3308b1 (patch)
tree9e36083502be7a4b421f8f6b503b04adba1e2d78 /usr.bin/tip/tip.h
parent2da1ea8cfd5e9d38ec8937b7024d93efea1dff47 (diff)
Buf oflow fix from Warner Losh <imp@rover.village.org>
Diffstat (limited to 'usr.bin/tip/tip.h')
-rw-r--r--usr.bin/tip/tip.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tip/tip.h b/usr.bin/tip/tip.h
index 2b5a8bda9fe..7fb9fe035a4 100644
--- a/usr.bin/tip/tip.h
+++ b/usr.bin/tip/tip.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tip.h,v 1.6 1997/04/20 23:29:33 millert Exp $ */
+/* $OpenBSD: tip.h,v 1.7 1997/08/22 22:42:08 millert Exp $ */
/* $NetBSD: tip.h,v 1.7 1997/04/20 00:02:46 mellon Exp $ */
/*
@@ -55,6 +55,7 @@
#include <setjmp.h>
#include <unistd.h>
#include <errno.h>
+#include <limits.h>
/*
* Remote host attributes
@@ -254,8 +255,8 @@ int cumode; /* simulating the "cu" program */
int bits8; /* terminal is is 8-bit mode */
#define STRIP_PAR (bits8 ? 0377 : 0177)
-char fname[80]; /* file name buffer for ~< */
-char copyname[80]; /* file name buffer for ~> */
+char fname[PATH_MAX]; /* file name buffer for ~< */
+char copyname[PATH_MAX]; /* file name buffer for ~> */
char ccc; /* synchronization character */
char ch; /* for tipout */
char *uucplock; /* name of lock file for uucp's */