diff options
| author | Ulf Lilleengen <lulf@FreeBSD.org> | 2009-01-03 12:09:18 +0000 |
|---|---|---|
| committer | Ulf Lilleengen <lulf@FreeBSD.org> | 2009-01-03 12:09:18 +0000 |
| commit | 0b73a70cd926bf53e17816991cc8fe0c2518c366 (patch) | |
| tree | 72b69ab75eb5d148c752e107ef530358425cce70 | |
| parent | c81ea6003cebe1abfefa803db16c180409eb426b (diff) | |
Notes
| -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 177ef1757e78..050fe53d18f8 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: |
