From 7794a719c0114153ccbf009339e0f354eff8c1f5 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Fri, 28 Feb 2025 17:02:05 -0500 Subject: DA_INIT_SZ not DA_INIT_SIZE --- strio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strio.h b/strio.h index ad1dabd..0395dd7 100644 --- a/strio.h +++ b/strio.h @@ -17,7 +17,7 @@ string read_whole_file(FILE *f); string read_whole_file(FILE *f) { string s; - DA_INIT_SIZE(s, STRIO_CHUNK_SIZE); + DA_INIT_SZ(s, STRIO_CHUNK_SIZE); while (!feof(f)) { char *buf = &s[DA_LEN(s)]; size_t n = fread(buf, 1, STRIO_CHUNK_SIZE, f); -- cgit 1.4.1-2-gfad0