diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-06-04 03:00:30 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-06-04 03:00:30 +0000 |
commit | 2207e6f02f1e44b1fb340dc5f884b6706e793a86 (patch) | |
tree | ebaea3d51071ef2fb70e84a98b0bdc20833be930 /usr.bin/rcs | |
parent | 9d193f7a39bfcdc884af821ffa868bd929cb051d (diff) |
- we can just use the 'sizdiff' variable instead of calling strlen(expbuf);
simplifies things a little.
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r-- | usr.bin/rcs/rcs.c | 6 |
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); |