summary refs log tree commit diff
path: root/strio.h
diff options
context:
space:
mode:
Diffstat (limited to 'strio.h')
-rw-r--r--strio.h2
1 files changed, 1 insertions, 1 deletions
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);