summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/logmsg.c
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2005-08-08 14:28:59 +0000
committerxsa <xsa@openbsd.org>2005-08-08 14:28:59 +0000
commit0d57e88aaa3c4781c7d2fc47c18b31a3a88623c4 (patch)
tree7c9e4a53fb088232a3285ad85e6616dbddd5892c /usr.bin/cvs/logmsg.c
parentpfkey pieces for static keying, enable static keying (diff)
downloadwireguard-openbsd-0d57e88aaa3c4781c7d2fc47c18b31a3a88623c4.tar.xz
wireguard-openbsd-0d57e88aaa3c4781c7d2fc47c18b31a3a88623c4.zip
use cvs_tmpdir; OK jfb@ joris@.
Diffstat (limited to 'usr.bin/cvs/logmsg.c')
-rw-r--r--usr.bin/cvs/logmsg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/logmsg.c b/usr.bin/cvs/logmsg.c
index 63aa2b60e6a..652ccaf5ad9 100644
--- a/usr.bin/cvs/logmsg.c
+++ b/usr.bin/cvs/logmsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: logmsg.c,v 1.18 2005/07/25 12:13:08 xsa Exp $ */
+/* $OpenBSD: logmsg.c,v 1.19 2005/08/08 14:28:59 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -40,7 +40,6 @@
#define CVS_LOGMSG_BIGMSG 32000
-#define CVS_LOGMSG_FTMPL "/tmp/cvsXXXXXXXXXX"
#define CVS_LOGMSG_PREFIX "CVS:"
#define CVS_LOGMSG_LINE \
"----------------------------------------------------------------------"
@@ -184,7 +183,8 @@ cvs_logmsg_get(const char *dir, struct cvs_flist *added,
fds[0] = -1;
fds[1] = -1;
fds[2] = -1;
- strlcpy(path, CVS_LOGMSG_FTMPL, sizeof(path));
+ strlcpy(path, cvs_tmpdir, sizeof(path));
+ strlcat(path, "/cvsXXXXXXXXXX", sizeof(path));
argc = 0;
argv[argc++] = cvs_editor;
argv[argc++] = path;