From 93217174999958163609bae1bd336999af9db184 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Sun, 28 Dec 2025 16:34:45 -0500 Subject: don't do that --- txt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/txt.c b/txt.c index 7548109..0b13a9e 100644 --- a/txt.c +++ b/txt.c @@ -146,7 +146,7 @@ u32 txt_delete_c(Txt *b, u32 cur) { int txt_load(Txt *b, const char *path) { struct stat sb; - int fd = open(path, O_RDONLY | O_CREAT); + int fd = open(path, O_RDONLY); if (fd == -1) return -1; if (fstat(fd, &sb)) { close(fd); -- cgit v1.2.3