commit 62522c0ef37d7f4431331f429367467537948340
parent 1ddfed2ab9f523e07cefd87f81aea325bf3fff3f
Author: Chris Bracken <chris@bracken.jp>
Date: Sat, 21 Feb 2026 02:22:36 +0900
cache: fix incorrect buffer size in test
The buffer is the empty string which is one byte: '\0'.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/writer/cache/cache_tests.c b/src/writer/cache/cache_tests.c
@@ -74,7 +74,7 @@ UTEST(cache, incremental_update) {
UTEST(cache, corrupt_input) {
const char* prev_cache = "";
- FILE* in = fmemopen((void*)prev_cache, 0, "r");
+ FILE* in = fmemopen((void*)prev_cache, 1, "r");
char* out_buf = NULL;
size_t out_size = 0;