diff options
Diffstat (limited to 'core/membuffer.c')
-rw-r--r-- | core/membuffer.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/core/membuffer.c b/core/membuffer.c index 18a0203fc..1d486b3a6 100644 --- a/core/membuffer.c +++ b/core/membuffer.c @@ -52,7 +52,7 @@ static void oom(void) exit(1); } -static void make_room(struct membuffer *b, unsigned int size) +void make_room(struct membuffer *b, unsigned int size) { unsigned int needed = b->len + size; if (needed > b->alloc) { @@ -141,6 +141,15 @@ void put_format(struct membuffer *b, const char *fmt, ...) va_end(args); } +void put_format_loc(struct membuffer *b, const char *fmt, ...) +{ + va_list args; + + va_start(args, fmt); + put_vformat_loc(b, fmt, args); + va_end(args); +} + void put_milli(struct membuffer *b, const char *pre, int value, const char *post) { int i; |