diff options
Diffstat (limited to 'bootstrap/util.c')
| -rw-r--r-- | bootstrap/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap/util.c b/bootstrap/util.c index 20f1772..7755095 100644 --- a/bootstrap/util.c +++ b/bootstrap/util.c @@ -70,14 +70,14 @@ xrealloc(void *p, size_t n) { char * xasprintf(const char *fmt, ...) { va_list ap, aq; - int n = 16, m; + int n = 32, m; char *str = xcalloc(n, 1); va_start(ap, fmt); m = vsnprintf(str, n, fmt, ap) + 1; str = xrealloc(str, m); if (m > n) { va_copy(aq, ap); - vsprintf(str, fmt, ap); + vsprintf(str, fmt, aq); va_end(aq); } va_end(ap); |