projects
/
platform
/
upstream
/
make.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ade4655
)
Formerly expand.c.~4~
author
Roland McGrath
<roland@redhat.com>
Tue, 16 Jun 1992 23:43:29 +0000
(23:43 +0000)
committer
Roland McGrath
<roland@redhat.com>
Tue, 16 Jun 1992 23:43:29 +0000
(23:43 +0000)
expand.c
patch
|
blob
|
history
diff --git
a/expand.c
b/expand.c
index
668bb10
..
1237da1
100644
(file)
--- a/
expand.c
+++ b/
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;