diff options
Diffstat (limited to 'xe.c')
-rw-r--r-- | xe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xe.c b/xe.c index 652d22e..088db49 100644 --- a/xe.c +++ b/xe.c @@ -161,7 +161,8 @@ pusharg(const char *a) } if (buflen + l > bufcap) { - bufcap *= 2; + while (buflen + l > bufcap) + bufcap *= 2; buf = realloc(buf, bufcap); if (!args) exit(1); |