summaryrefslogtreecommitdiff
path: root/make_cmd.c
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>1998-07-23 14:37:54 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:52 +0000
commitbc4cd23ce958feda898c618215f94d8a4e8f4ffa (patch)
tree32fc9a13b636cb4d29873feddc533d3dfb25a917 /make_cmd.c
parentcce855bc5b117cb7ae70064131120687bc69fac0 (diff)
downloadbash-bc4cd23ce958feda898c618215f94d8a4e8f4ffa.tar.gz
Imported from ../bash-2.02.1.tar.gz.
Diffstat (limited to 'make_cmd.c')
-rw-r--r--make_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/make_cmd.c b/make_cmd.c
index 6ce7e4c1..d0991ca0 100644
--- a/make_cmd.c
+++ b/make_cmd.c
@@ -492,7 +492,7 @@ make_here_document (temp)
len = strlen (line);
if (len + document_index >= document_size)
{
- document_size = document_size ? 2 * (document_size + len) : 1000;
+ document_size = document_size ? 2 * (document_size + len) : len + 2;
document = xrealloc (document, document_size);
}