summaryrefslogtreecommitdiffstats
path: root/strpool.c
diff options
context:
space:
mode:
Diffstat (limited to 'strpool.c')
-rw-r--r--strpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strpool.c b/strpool.c
index 51337bd..f44517f 100644
--- a/strpool.c
+++ b/strpool.c
@@ -585,7 +585,7 @@ int main(int argc, char *argv[]) {
if (argc > 2) {
- if (!(out = fopen(argv[2], "2"))) {
+ if (!(out = fopen(argv[2], "w"))) {
fprintf(stderr, "Failed to open '%s': %s\n", argv[2], strerror(errno));
return 1;
}