diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2007-01-07 03:08:16 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2007-01-07 03:08:16 +0000 |
commit | ee5ef0fe3d0647c0d2cde58b4645e057c90f5c4f (patch) | |
tree | e9688145a352511daf3ab60ccb9e64731466a4fa /usr.bin/cvs/commit.c | |
parent | 125044b0d0b25a5acf48af8a4c32b41aba93de46 (diff) |
use cvs_logmsg_read() for -F for simplicity.
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 8 |
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; |