newpkg: ocaml-bigarray-compat (ocaml-ctypes dep)
[arch-packages.git] / procmail / trunk / formisc.c.patch
blob59102b352175da902a508948d1363c05e5e8bf4a
1 diff --git a/src/formisc.c b/src/formisc.c
2 index d91b227..6c7594b 100644
3 --- a/src/formisc.c
4 +++ b/src/formisc.c
5 @@ -103,7 +103,7 @@ void loadsaved(sp)const struct saved*const sp; /* load some saved text */
7 /* append to buf */
8 void loadbuf(text,len)const char*const text;const size_t len;
9 -{ if(buffilled+len>buflen) /* buf can't hold the text */
10 +{ while(buffilled+len>buflen) /* buf can't hold the text */
11 buf=realloc(buf,buflen+=Bsize);
12 tmemmove(buf+buffilled,text,len);buffilled+=len;