summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/remove.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2008-02-09 20:04:01 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2008-02-09 20:04:01 +0000
commit8c24de380c7a47ce74567986a655e7fee381faee (patch)
tree2f0105446f420d2847ad1ae397acd324585ab699 /usr.bin/cvs/remove.c
parent06719c8f8958c753fac5525b73b73c502d342480 (diff)
Introduce cvs_ent_line_str() - formats CVS/Entries lines.
OK tobias@.
Diffstat (limited to 'usr.bin/cvs/remove.c')
-rw-r--r--usr.bin/cvs/remove.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/cvs/remove.c b/usr.bin/cvs/remove.c
index dd4bb4fd5ac..3f4afeaa6e4 100644
--- a/usr.bin/cvs/remove.c
+++ b/usr.bin/cvs/remove.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: remove.c,v 1.71 2008/02/06 12:42:46 tobias Exp $ */
+/* $OpenBSD: remove.c,v 1.72 2008/02/09 20:04:00 xsa Exp $ */
/*
* Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org>
*
@@ -198,9 +198,9 @@ cvs_remove_local(struct cvs_file *cf)
cf->file_ent->ce_tag);
entry = xmalloc(CVS_ENT_MAXLINELEN);
- (void)xsnprintf(entry, CVS_ENT_MAXLINELEN,
- "/%s/-%s/%s/%s/%s", cf->file_name, rbuf, tbuf,
- cf->file_ent->ce_opts ? : "", sticky);
+ cvs_ent_line_str(cf->file_name, rbuf, tbuf,
+ cf->file_ent->ce_opts ? : "", sticky, 0, 1,
+ entry, CVS_ENT_MAXLINELEN);
if (cvs_server_active == 1) {
cvs_server_update_entry("Checked-in", cf);