summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2005-10-08 14:25:56 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2005-10-08 14:25:56 +0000
commitb57a32f9bd3781b4385c5430a38666b98d76774d (patch)
tree0b666e6b9bb1a758f7d0d6a1107a1a572b80fa37
parentadb3235d127353f0dc1845ebda0f06566838aab4 (diff)
remember to NUL-terminate logbuf in checkin_getlogmsg()
-rw-r--r--usr.bin/rcs/ci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c
index 034e35f71a3..c361f7c76fc 100644
--- a/usr.bin/rcs/ci.c
+++ b/usr.bin/rcs/ci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ci.c,v 1.7 2005/10/08 14:18:35 niallo Exp $ */
+/* $OpenBSD: ci.c,v 1.8 2005/10/08 14:25:55 niallo Exp $ */
/*
* Copyright (c) 2005 Niall O'Higgins <niallo@openbsd.org>
* All rights reserved.
@@ -309,6 +309,7 @@ checkin_getlogmsg(char *rcsfile, char *workingfile, RCSNUM *rev)
cvs_buf_append(logbuf, buf, strlen(buf));
cvs_printf(">> ");
}
+ cvs_buf_putc(logbuf, '\0');
rcs_msg = (char *)cvs_buf_release(logbuf);
return (rcs_msg);
}