summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/proto.c
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2005-07-09 16:27:35 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2005-07-09 16:27:35 +0000
commit123b0ef78d67c187925fde037083df6d9fd593a6 (patch)
treec15a2bcf1f92f6935a23a9396176dce67a74ee55 /usr.bin/cvs/proto.c
parent67d2f27fa2ccd13985d55f78f55b15c495611f18 (diff)
convert snprintf with format string "%s" to an strlcpy.
ok joris@
Diffstat (limited to 'usr.bin/cvs/proto.c')
-rw-r--r--usr.bin/cvs/proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/proto.c b/usr.bin/cvs/proto.c
index c92d9b1e4eb..47374773f5e 100644
--- a/usr.bin/cvs/proto.c
+++ b/usr.bin/cvs/proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proto.c,v 1.58 2005/07/07 14:27:57 joris Exp $ */
+/* $OpenBSD: proto.c,v 1.59 2005/07/09 16:27:34 niallo Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -1101,7 +1101,7 @@ cvs_initlog(void)
break;
case 'd':
time(&now);
- snprintf(fpath, sizeof(fpath), "%s", ctime(&now));
+ strlcpy(fpath, ctime(&now), sizeof(fpath));
break;
case 'p':
snprintf(fpath, sizeof(fpath), "%d", getpid());