diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-28 14:53:22 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-28 14:53:22 +0000 |
commit | d5f2e46e7562ce6c50d6920c445198f7b2af7c86 (patch) | |
tree | 8ec0a1f7cf537bd525f5ac045e8a77c8992390fa /roff.c | |
parent | 8387088c9579f2cf4b49a24722b75c6c484c4967 (diff) | |
download | mandoc-d5f2e46e7562ce6c50d6920c445198f7b2af7c86.tar.gz |
Fix border condition in `tr' grokking arguments.
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1383,10 +1383,11 @@ roff_tr(ROFF_ARGS) return(ROFF_IGN); } ssz = (size_t)(p - second); - } else if ('\0' == *p) { + } else if ('\0' == *second) { mandoc_msg(MANDOCERR_ARGCOUNT, r->parse, ln, (int)(p - *bufp), NULL); second = " "; + p--; } roff_setstrn(&r->chrtab, first, fsz, second, ssz, 0); |