-/* $Id: main.c,v 1.123 2010/12/15 23:39:40 kristaps Exp $ */
+/* $Id: main.c,v 1.127 2010/12/29 14:38:14 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
/* related to macros and nesting */
"skipping obsolete macro",
+ "skipping paragraph macro",
"blocks badly nested",
"child violates parent syntax",
"nested displays are not portable",
"generic error",
+ "bad table syntax",
+ "bad table option",
+ "bad table layout",
+ "no table layout cells specified",
"input stack limit exceeded, infinite loop?",
"skipping bad character",
"skipping text before the first section header",
"skipping unknown macro",
- "skipping paragraph macro",
"NOT IMPLEMENTED: skipping request",
"line scope broken",
"argument count wrong",
resize_buf(struct buf *buf, size_t initial)
{
- buf->sz = buf->sz ? 2 * buf->sz : initial;
+ buf->sz = buf->sz > initial/2 ? 2 * buf->sz : initial;
buf->buf = realloc(buf->buf, buf->sz);
if (NULL == buf->buf) {
perror(NULL);