summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-07-21 20:31:14 +0200
committerLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-07-21 20:31:14 +0200
commit88f3cc2d82d188e644d9791a4aaba68c1b11d747 (patch)
treec1e5cf715b7b0700da058aa3c29c46cc7eaa797f
parent35b413f525146c1c2cbe509967c2595378fdc299 (diff)
stream_to_filebuf: herstel foutje
-rw-r--r--src/io/read_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/read_file.c b/src/io/read_file.c
index b2f4604..b3ee7f1 100644
--- a/src/io/read_file.c
+++ b/src/io/read_file.c
@@ -42,7 +42,7 @@ struct filebuf *stream_to_filebuf(FILE *restrict stream) {
struct filebuf *res = calloc(1, sizeof(struct filebuf));
res->buf = buf;
res->sz = sz;
- res->mapping_type = MT_MMAP;
+ res->mapping_type = MT_OWNED;
return res;
}