diff options
author | Nikias Bassen | 2018-12-14 04:23:05 +0100 |
---|---|---|
committer | Nikias Bassen | 2018-12-14 04:23:05 +0100 |
commit | ac3be565c413f6964f0188e1c608c1bf8848db29 (patch) | |
tree | 12c1a4809a11dd51ee0d758a2c9763366d28aa6a /src/strbuf.h | |
parent | 3007c970a6d61efe453b51b76cb7a79c94fc6a06 (diff) | |
download | libplist-ac3be565c413f6964f0188e1c608c1bf8848db29.tar.gz libplist-ac3be565c413f6964f0188e1c608c1bf8848db29.tar.bz2 |
xplist: Improve memory usage by estimating output buffer size
Diffstat (limited to 'src/strbuf.h')
-rw-r--r-- | src/strbuf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strbuf.h b/src/strbuf.h index b805892..0d28edf 100644 --- a/src/strbuf.h +++ b/src/strbuf.h @@ -26,7 +26,7 @@ typedef struct bytearray_t strbuf_t; -#define str_buf_new() byte_array_new(32768) +#define str_buf_new(__sz) byte_array_new(__sz) #define str_buf_free(__ba) byte_array_free(__ba) #define str_buf_grow(__ba, __am) byte_array_grow(__ba, __am) #define str_buf_append(__ba, __str, __len) byte_array_append(__ba, (void*)(__str), __len) |