=================================================================== RCS file: /cvs/texi2mdoc/util.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -p -r1.4 -r1.5 --- texi2mdoc/util.c 2015/02/21 17:00:33 1.4 +++ texi2mdoc/util.c 2015/02/21 21:49:18 1.5 @@ -1,4 +1,4 @@ -/* $Id: util.c,v 1.4 2015/02/21 17:00:33 kristaps Exp $ */ +/* $Id: util.c,v 1.5 2015/02/21 21:49:18 kristaps Exp $ */ /* * Copyright (c) 2015 Kristaps Dzonsons * @@ -252,7 +252,7 @@ void texivspace(struct texi *p) { - if (p->seenvs) + if (p->seenvs || TEXILIST_TABLE == p->list) return; teximacro(p, "Pp"); p->seenvs = 1; @@ -777,7 +777,8 @@ parsefile(struct texi *p, const char *fname, int parse struct stat st; size_t i; - assert(p->filepos < 64); + if (64 == p->filepos) + texiabort(p, "too many open files"); f = &p->files[p->filepos]; memset(f, 0, sizeof(struct texifile));