aboutsummaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2000-12-08 13:04:24 +0000
committerPeter Pentchev <roam@FreeBSD.org>2000-12-08 13:04:24 +0000
commitdf14c0842b70e56c1da831d7e7dd7f02bb85a6bf (patch)
tree49443d608acb01847f3462ab5eccef9268dbae43 /shells
parentaca6bbc4631414e4ff1131c648e0f006ad4de1f3 (diff)
downloadports-df14c0842b70e56c1da831d7e7dd7f02bb85a6bf.tar.gz
ports-df14c0842b70e56c1da831d7e7dd7f02bb85a6bf.zip
free() before realloc() is bad, bad, bad.
Submitted by: Loren James Rittle <rittle@latour.rsch.comm.mot.com>
Notes
Notes: svn path=/head/; revision=35765
Diffstat (limited to 'shells')
-rw-r--r--shells/es/files/patch-ab13
1 files changed, 13 insertions, 0 deletions
diff --git a/shells/es/files/patch-ab b/shells/es/files/patch-ab
new file mode 100644
index 000000000000..e191c67a04b3
--- /dev/null
+++ b/shells/es/files/patch-ab
@@ -0,0 +1,13 @@
+*** input.c.orig Tue Aug 12 18:59:26 1997
+--- input.c Thu Dec 7 18:35:01 2000
+***************
+*** 307,313 ****
+ if (in->buflen < nread) {
+ while (in->buflen < nread)
+ in->buflen *= 2;
+- efree(in->bufbegin);
+ in->bufbegin = erealloc(in->bufbegin, in->buflen);
+ }
+ memcpy(in->bufbegin, rlinebuf, nread - 1);
+--- 307,312 ----
+