summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rcs/co.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c
index fdf895bd3a2..ff4feb99ec5 100644
--- a/usr.bin/rcs/co.c
+++ b/usr.bin/rcs/co.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: co.c,v 1.100 2006/11/10 16:31:29 millert Exp $ */
+/* $OpenBSD: co.c,v 1.101 2007/02/01 18:01:42 millert Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -520,6 +520,10 @@ checkout_file_has_diffs(RCSFILE *rfp, RCSNUM *frev, const char *dst)
warnx("failed to load revision");
return (D_ERROR);
}
+ if ((bp = rcs_kwexp_buf(bp, rfp, frev)) == NULL) {
+ warnx("failed to expand tags");
+ return (D_ERROR);
+ }
(void)xasprintf(&tempfile, "%s/diff.XXXXXXXXXX", rcs_tmpdir);
rcs_buf_write_stmp(bp, tempfile);