summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorlulf <lulf@FreeBSD.org>2009-01-03 12:09:18 +0000
committerlulf <lulf@FreeBSD.org>2009-01-03 12:09:18 +0000
commit94a4b6019d079ff2422168a73af9dadeae1351bf (patch)
tree72b69ab75eb5d148c752e107ef530358425cce70 /contrib
parentf67ab72faf5803d2034f0aca36255d6710a395ca (diff)
downloadFreeBSD-src-94a4b6019d079ff2422168a73af9dadeae1351bf.zip
FreeBSD-src-94a4b6019d079ff2422168a73af9dadeae1351bf.tar.gz
- A bit missing from the previous commit. The '@'s from the string token must be
stripped before encoding the expansion mode.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/csup/rcsfile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/csup/rcsfile.c b/contrib/csup/rcsfile.c
index 177ef17..050fe53 100644
--- a/contrib/csup/rcsfile.c
+++ b/contrib/csup/rcsfile.c
@@ -921,6 +921,7 @@ rcsfile_getdelta(struct rcsfile *rf, char *revnum)
void
rcsfile_setval(struct rcsfile *rf, int field, char *val)
{
+ size_t len;
switch (field) {
case RCSFILE_HEAD:
@@ -943,6 +944,9 @@ rcsfile_setval(struct rcsfile *rf, int field, char *val)
rf->comment = xstrdup(val);
break;
case RCSFILE_EXPAND:
+ len = strlen(val) - 1;
+ val++;
+ val[len - 1] = '\0';
rf->expand = keyword_decode_expand(val);
break;
case RCSFILE_DESC:
OpenPOWER on IntegriCloud