diff options
author | lulf <lulf@FreeBSD.org> | 2009-01-03 12:09:18 +0000 |
---|---|---|
committer | lulf <lulf@FreeBSD.org> | 2009-01-03 12:09:18 +0000 |
commit | 94a4b6019d079ff2422168a73af9dadeae1351bf (patch) | |
tree | 72b69ab75eb5d148c752e107ef530358425cce70 /contrib/csup | |
parent | f67ab72faf5803d2034f0aca36255d6710a395ca (diff) | |
download | FreeBSD-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/csup')
-rw-r--r-- | contrib/csup/rcsfile.c | 4 |
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: |