mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Make slight SSL performance improvements
This commit is contained in:
parent
4178896aa0
commit
fe881982b5
6 changed files with 100 additions and 19 deletions
|
@ -33,7 +33,7 @@ int AppendFmt(struct Buffer *b, const char *fmt, ...) {
|
|||
} else {
|
||||
b->n = 16;
|
||||
}
|
||||
} while (b->i + n > b->n);
|
||||
} while (b->i + n + 1 > b->n);
|
||||
b->p = realloc(b->p, b->n);
|
||||
vsnprintf(b->p + b->i, b->n - b->i, fmt, vb);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue