=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/tbl_term.c,v retrieving revision 1.22 retrieving revision 1.23 diff -c -r1.22 -r1.23 *** src/usr.bin/mandoc/tbl_term.c 2015/01/28 04:18:31 1.22 --- src/usr.bin/mandoc/tbl_term.c 2015/01/30 02:08:37 1.23 *************** *** 1,4 **** ! /* $OpenBSD: tbl_term.c,v 1.22 2015/01/28 04:18:31 schwarze Exp $ */ /* * Copyright (c) 2009, 2011 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2014, 2015 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: tbl_term.c,v 1.23 2015/01/30 02:08:37 schwarze Exp $ */ /* * Copyright (c) 2009, 2011 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2014, 2015 Ingo Schwarze *************** *** 260,270 **** const struct roffcol *col) { ! if (NULL == dp) { tbl_char(tp, ASCII_NBRSP, col->width); return; } - assert(dp->layout); switch (dp->pos) { case TBL_DATA_NONE: --- 260,269 ---- const struct roffcol *col) { ! if (dp == NULL) { tbl_char(tp, ASCII_NBRSP, col->width); return; } switch (dp->pos) { case TBL_DATA_NONE: *************** *** 394,401 **** psz = term_strlen(tp, buf); ! if (NULL != (cp = strrchr(dp->string, opts->decimal))) { ! buf[1] = '\0'; for (ssz = 0, i = 0; cp != &dp->string[i]; i++) { buf[0] = dp->string[i]; ssz += term_strlen(tp, buf); --- 393,399 ---- psz = term_strlen(tp, buf); ! if ((cp = strrchr(dp->string, opts->decimal)) != NULL) { for (ssz = 0, i = 0; cp != &dp->string[i]; i++) { buf[0] = dp->string[i]; ssz += term_strlen(tp, buf);