mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-28 15:57:48 +00:00
Formerly expand.c.~4~
This commit is contained in:
parent
ade465512f
commit
29380252a8
1 changed files with 3 additions and 1 deletions
4
expand.c
4
expand.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue