diff options
author | Roland McGrath <roland@redhat.com> | 1992-06-16 23:43:29 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1992-06-16 23:43:29 +0000 |
commit | 29380252a8bd3d9d0f43a691f3a2a88c7c102999 (patch) | |
tree | 360399c38fea5eb48123732ae73a61f9e6084c1e | |
parent | ade465512fea0ecaab1bb85c437a33097ee501b6 (diff) | |
download | gunmake-29380252a8bd3d9d0f43a691f3a2a88c7c102999.tar.gz |
Formerly expand.c.~4~
-rw-r--r-- | expand.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -47,7 +47,9 @@ variable_buffer_output (ptr, string, length) if (newlen > variable_buffer_length) { unsigned int offset = ptr - variable_buffer; - variable_buffer_length = max (2 * variable_buffer_length, newlen + 100); + variable_buffer_length = (newlen + 100 > 2 * variable_buffer_length + ? newlen + 100 + : 2 * variable_buffer_length); variable_buffer = (char *) xrealloc (variable_buffer, variable_buffer_length); ptr = variable_buffer + offset; |