diff options
author | Antonio Rojas | 2022-04-01 20:13:58 +0200 |
---|---|---|
committer | Antonio Rojas | 2022-04-01 20:13:58 +0200 |
commit | 524b80a2a8b37d71623571969d09e39ed7ce874e (patch) | |
tree | fd4f3a254b8e370c33e60822bed0aa1eea904864 /formisc.c.patch | |
download | aur-524b80a2a8b37d71623571969d09e39ed7ce874e.tar.gz |
import from community
Diffstat (limited to 'formisc.c.patch')
-rw-r--r-- | formisc.c.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/formisc.c.patch b/formisc.c.patch new file mode 100644 index 000000000000..59102b352175 --- /dev/null +++ b/formisc.c.patch @@ -0,0 +1,14 @@ +diff --git a/src/formisc.c b/src/formisc.c +index d91b227..6c7594b 100644 +--- a/src/formisc.c ++++ b/src/formisc.c +@@ -103,7 +103,7 @@ void loadsaved(sp)const struct saved*const sp; /* load some saved text */ + } + /* 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; + } + |