summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWormHeamer2025-12-28 16:34:45 -0500
committerWormHeamer2025-12-28 16:34:45 -0500
commit93217174999958163609bae1bd336999af9db184 (patch)
tree819e9b969dbb10e7b90013d175ddeb31150f4441
parenta8efb42232ab74fe2ef13a0160d2057c53ea2c83 (diff)
don't do that
-rw-r--r--txt.c2
1 files changed, 1 insertions, 1 deletions
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);