diff options
Diffstat (limited to 'txt.c')
| -rw-r--r-- | txt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
