=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.125 retrieving revision 1.126 diff -u -p -r1.125 -r1.126 --- mandoc/term.c 2009/11/12 05:50:12 1.125 +++ mandoc/term.c 2009/11/12 05:58:30 1.126 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.125 2009/11/12 05:50:12 kristaps Exp $ */ +/* $Id: term.c,v 1.126 2009/11/12 05:58:30 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -14,6 +14,8 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include + #include #include #include @@ -527,7 +529,7 @@ buffera(struct termp *p, const char *word, size_t sz) if (p->col + sz >= p->maxcols) adjbuf(p, p->col + sz); - memcpy(&p->buf[p->col], word, sz); + memcpy(&p->buf[(int)p->col], word, sz); p->col += sz; } @@ -539,7 +541,7 @@ bufferc(struct termp *p, char c) if (p->col + 1 >= p->maxcols) adjbuf(p, p->col + 1); - p->buf[p->col++] = c; + p->buf[(int)p->col++] = c; }