summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/commit.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2007-01-07 03:08:16 +0000
committerJoris Vink <joris@cvs.openbsd.org>2007-01-07 03:08:16 +0000
commitee5ef0fe3d0647c0d2cde58b4645e057c90f5c4f (patch)
treee9688145a352511daf3ab60ccb9e64731466a4fa /usr.bin/cvs/commit.c
parent125044b0d0b25a5acf48af8a4c32b41aba93de46 (diff)
use cvs_logmsg_read() for -F for simplicity.
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r--usr.bin/cvs/commit.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c
index 823cf424fc0..cad1b092588 100644
--- a/usr.bin/cvs/commit.c
+++ b/usr.bin/cvs/commit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commit.c,v 1.87 2007/01/07 02:44:13 joris Exp $ */
+/* $OpenBSD: commit.c,v 1.88 2007/01/07 03:08:15 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -61,11 +61,7 @@ cvs_commit(int argc, char **argv)
while ((ch = getopt(argc, argv, cvs_cmd_commit.cmd_opts)) != -1) {
switch (ch) {
case 'F':
- bp = cvs_buf_load(optarg, BUF_AUTOEXT);
- if (bp == NULL)
- fatal("failed to load commit message %s", optarg);
- cvs_buf_putc(bp, '\0');
- logmsg = cvs_buf_release(bp);
+ logmsg = cvs_logmsg_read(optarg);
break;
case 'f':
break;