=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.87 retrieving revision 1.88 diff -u -p -r1.87 -r1.88 --- mandoc/term.c 2009/07/15 15:53:57 1.87 +++ mandoc/term.c 2009/07/16 12:34:06 1.88 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.87 2009/07/15 15:53:57 kristaps Exp $ */ +/* $Id: term.c,v 1.88 2009/07/16 12:34:06 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -495,6 +495,7 @@ term_pescape(struct termp *p, const char **word) void term_word(struct termp *p, const char *word) { + const char *sv; if (term_isclosedelim(word)) if ( ! (TERMP_IGNDELIM & p->flags)) @@ -511,13 +512,13 @@ term_word(struct termp *p, const char *word) * before the word. */ - for ( ; *word; word++) + for (sv = word; *word; word++) if ('\\' != *word) term_encodea(p, *word); else term_pescape(p, &word); - if (term_isopendelim(word)) + if (term_isopendelim(sv)) p->flags |= TERMP_NOSPACE; }