summaryrefslogtreecommitdiffstats
path: root/roff.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-15 22:28:22 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-15 22:28:22 +0000
commita8bb7c209207e9203564a03b9b8d4b662cff4e1e (patch)
tree41b6b13927490124d037a2742701e53ff55a390f /roff.c
parent884e4b08018aa51fbedd9b4cbedf09c735793aa2 (diff)
downloadmandoc-a8bb7c209207e9203564a03b9b8d4b662cff4e1e.tar.gz
Backed-out warning messages (lots).
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/roff.c b/roff.c
index 3e298ae0..8ed21a8f 100644
--- a/roff.c
+++ b/roff.c
@@ -349,14 +349,14 @@ roff_new_ig(ROFF_ARGS)
* Merry fucking Christmas.
*/
- r->last->end = malloc((size_t)i - ppos + 1);
+ r->last->end = malloc((size_t)(i - ppos) + 1);
if (NULL == r->last->end) {
(*r->msg)(MANDOCERR_MEM, r->data, ln, ppos, NULL);
return(ROFF_ERR);
}
- memcpy(r->last->end, &(*bufp)[ppos], (size_t)i - ppos);
- r->last->end[(size_t)i - ppos] = '\0';
+ memcpy(r->last->end, &(*bufp)[ppos], (size_t)(i - ppos));
+ r->last->end[i - ppos] = '\0';
return(ROFF_IGN);
}