0cd361
diff --git a/src/formisc.c b/src/formisc.c
0cd361
index 5c2869d..54fd013 100644
0cd361
--- a/src/formisc.c
0cd361
+++ b/src/formisc.c
0cd361
@@ -103,7 +103,7 @@ void loadsaved(sp)const struct saved*const sp;	     /* load some saved text */
0cd361
 }
0cd361
 							    /* append to buf */
0cd361
 void loadbuf(text,len)const char*const text;const size_t len;
0cd361
-{ if(buffilled+len>buflen)			  /* buf can't hold the text */
0cd361
+{ while(buffilled+len>buflen)			  /* buf can't hold the text */
0cd361
      buf=realloc(buf,buflen+=Bsize);
0cd361
   tmemmove(buf+buffilled,text,len);buffilled+=len;
0cd361
 }