=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/tbl_opts.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/mandoc/tbl_opts.c 2015/01/26 13:02:53 1.10 --- src/usr.bin/mandoc/tbl_opts.c 2015/01/28 15:02:25 1.11 *************** *** 1,4 **** ! /* $OpenBSD: tbl_opts.c,v 1.10 2015/01/26 13:02:53 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2015 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: tbl_opts.c,v 1.11 2015/01/28 15:02:25 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2015 Ingo Schwarze *************** *** 118,134 **** * and some options are followed by arguments. */ void ! tbl_option(struct tbl_node *tbl, int ln, const char *p) { int i, pos, len; ! pos = 0; for (;;) { while (p[pos] == ' ' || p[pos] == '\t' || p[pos] == ',') pos++; ! if (p[pos] == ';') return; /* Parse one option name. */ --- 118,136 ---- * and some options are followed by arguments. */ void ! tbl_option(struct tbl_node *tbl, int ln, const char *p, int *offs) { int i, pos, len; ! pos = *offs; for (;;) { while (p[pos] == ' ' || p[pos] == '\t' || p[pos] == ',') pos++; ! if (p[pos] == ';') { ! *offs = pos + 1; return; + } /* Parse one option name. */