summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-28 16:48:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-28 16:48:48 +0000
commit1d5df6ec93a3187d4ad3b6403c36e614916afc90 (patch)
treedc4fb730d9b84b13b47448d156286e88d61f039c
parent9ba2233db51dad70e33d68b78c49ac1be96570c9 (diff)
buf problem with TMPDIR; karls@inet.no
-rw-r--r--usr.bin/yacc/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/yacc/main.c b/usr.bin/yacc/main.c
index 5f0b65d107e..75615561d05 100644
--- a/usr.bin/yacc/main.c
+++ b/usr.bin/yacc/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.8 1997/11/05 09:36:22 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.9 1998/05/28 16:48:47 deraadt Exp $ */
/* $NetBSD: main.c,v 1.5 1996/03/19 03:21:38 jtc Exp $ */
/*
@@ -47,7 +47,7 @@ char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 5.5 (Berkeley) 5/24/93";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.8 1997/11/05 09:36:22 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.9 1998/05/28 16:48:47 deraadt Exp $";
#endif
#endif /* not lint */
@@ -297,7 +297,7 @@ create_file_names()
if (tmpdir == 0) tmpdir = "/tmp";
len = strlen(tmpdir);
- i = len + 13;
+ i = len + strlen(temp_form) + 1;
if (len && tmpdir[len-1] != '/')
++i;