diff options
author | WormHeamer | 2025-02-28 17:02:05 -0500 |
---|---|---|
committer | WormHeamer | 2025-02-28 17:02:05 -0500 |
commit | 7794a719c0114153ccbf009339e0f354eff8c1f5 (patch) | |
tree | 8c803b1fc635308f1bc8c9b86db6cf11da74a501 | |
parent | f7ef71a37ae4ac9b69eaa7fa5cd500f791d67677 (diff) |
DA_INIT_SZ not DA_INIT_SIZE
-rw-r--r-- | strio.h | 2 |
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); |