From fb972d3966975898f208e2783611ee6e74ebcdb5 Mon Sep 17 00:00:00 2001 From: Jean-Francois Brousseau Date: Wed, 8 Dec 2004 18:54:24 +0000 Subject: 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 --- usr.bin/cvs/logmsg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/cvs/logmsg.c') 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 * 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) { -- cgit v1.2.3