diff options
| author | 2022-08-11 06:51:48 +0200 | |
|---|---|---|
| committer | 2022-08-11 06:51:48 +0200 | |
| commit | 25bf34e2c15b93e1cedab14cc83dddbb08ffcf3b (patch) | |
| tree | 5b57e1d11126a839851ef3038e61a524719b4bfc /bootstrap/util.c | |
| parent | 99cb50d4f13d587e3a0e0f2a44485f301409afb4 (diff) | |
more fix
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); |