summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/logmsg.c
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-12-08 18:54:24 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-12-08 18:54:24 +0000
commitfb972d3966975898f208e2783611ee6e74ebcdb5 (patch)
treef2d3911d07708d7ec6a6738cb2bd4a44c95060dd /usr.bin/cvs/logmsg.c
parentbe8d066e95290d05df7d4d5bf2c16c25d487de96 (diff)
rearrange the output loop for file lists in the log message so we don't
have blank lines or extra delimiters in some cases spotted by and discussed with Joris Vink
Diffstat (limited to 'usr.bin/cvs/logmsg.c')
-rw-r--r--usr.bin/cvs/logmsg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/logmsg.c b/usr.bin/cvs/logmsg.c
index ced24f38d52..daef6d595c4 100644
--- a/usr.bin/cvs/logmsg.c
+++ b/usr.bin/cvs/logmsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: logmsg.c,v 1.8 2004/12/08 17:22:48 jfb Exp $ */
+/* $OpenBSD: logmsg.c,v 1.9 2004/12/08 18:54:23 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -224,9 +224,10 @@ cvs_logmsg_get(const char *dir, struct cvs_flist *added,
fprintf(fp, " %s", fpath);
tlen += len;
}
+ fputc('\n', fp);
- fprintf(fp, "\n%s %s\n", CVS_LOGMSG_PREFIX, CVS_LOGMSG_LINE);
}
+ fprintf(fp, "%s %s\n", CVS_LOGMSG_PREFIX, CVS_LOGMSG_LINE);
(void)fflush(fp);
if (fstat(fd, &st1) == -1) {