--- src/formisc.c.orig 2017-11-22 07:00:00.000000000 +0000 +++ src/formisc.c 2017-11-22 07:00:00.000000000 +0000 @@ -103,7 +103,7 @@ } /* append to buf */ void loadbuf(text,len)const char*const text;const size_t len; -{ if(buffilled+len>buflen) /* buf can't hold the text */ +{ while(buffilled+len>buflen) /* buf can't hold the text */ buf=realloc(buf,buflen+=Bsize); tmemmove(buf+buffilled,text,len);buffilled+=len; }