summaryrefslogtreecommitdiff
path: root/txt.c
diff options
context:
space:
mode:
Diffstat (limited to 'txt.c')
-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);