=================================================================== RCS file: /cvs/mandoc/read.c,v retrieving revision 1.128 retrieving revision 1.130 diff -u -p -r1.128 -r1.130 --- mandoc/read.c 2015/02/23 13:31:04 1.128 +++ mandoc/read.c 2015/03/10 14:17:52 1.130 @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.128 2015/02/23 13:31:04 schwarze Exp $ */ +/* $Id: read.c,v 1.130 2015/03/10 14:17:52 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2015 Ingo Schwarze @@ -636,7 +636,7 @@ read_whole_file(struct mparse *curp, const char *file, */ if (S_ISREG(st.st_mode)) { - if (st.st_size >= (1U << 31)) { + if ((size_t)st.st_size >= (1U << 31)) { mandoc_msg(MANDOCERR_TOOLARGE, curp, 0, 0, NULL); return(0); } @@ -868,6 +868,7 @@ mparse_wait(struct mparse *curp) perror("wait"); exit((int)MANDOCLEVEL_SYSERR); } + curp->child = 0; if (WIFSIGNALED(status)) { mandoc_vmsg(MANDOCERR_FILE, curp, 0, 0, "gunzip died from signal %d", WTERMSIG(status));