summaryrefslogtreecommitdiffstats
path: root/color.c
diff options
context:
space:
mode:
Diffstat (limited to 'color.c')
-rw-r--r--color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/color.c b/color.c
index 509e646..09070f2 100644
--- a/color.c
+++ b/color.c
@@ -526,7 +526,7 @@ CFILE *cfopen(const char *path, const struct colors *colors) {
return NULL;
}
- cfile->file = fopen(path, "wb");
+ cfile->file = xfopen(path, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC);
if (!cfile->file) {
cfclose(cfile);
return NULL;