From: Olaf Wintermann Date: Tue, 8 Apr 2025 17:48:25 +0000 (+0200) Subject: fix missing autoextend buffer flag in attachment_file_load X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=d7ff8cc40fb6b4d6980fc2e438a77e52de389287;p=note.git fix missing autoextend buffer flag in attachment_file_load --- diff --git a/application/attachment.c b/application/attachment.c index a1b717b..aaa1d55 100644 --- a/application/attachment.c +++ b/application/attachment.c @@ -107,7 +107,7 @@ cxmutstr attachment_file_load(const CxAllocator *a, const char *path) { } CxBuffer buf; - cxBufferInit(&buf, NULL, 1024*128, a, CX_BUFFER_FREE_CONTENTS); + cxBufferInit(&buf, NULL, 1024*128, a, CX_BUFFER_AUTO_EXTEND); cx_stream_copy(f, &buf, (cx_read_func)fread, (cx_write_func)cxBufferWrite); fclose(f);