summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/rcs/rcs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rcs/rcs.c b/usr.bin/rcs/rcs.c
index aa99389817b..7044243915c 100644
--- a/usr.bin/rcs/rcs.c
+++ b/usr.bin/rcs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.15 2006/06/04 02:56:53 niallo Exp $ */
+/* $OpenBSD: rcs.c,v 1.16 2006/06/04 03:00:29 niallo Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -2771,10 +2771,10 @@ rcs_expand_keywords(char *rcsfile, struct rcs_delta *rdp, BUF *bp, int mode)
fin = data + len;
}
memcpy(start, expbuf, strlen(expbuf));
- start += strlen(expbuf);
+ start += sizdiff;
memcpy(start, tbuf, tbuflen);
xfree(tbuf);
- i += strlen(expbuf);
+ i += sizdiff;
}
}
bp = rcs_buf_alloc(len - 1, BUF_AUTOEXT);