summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-07-19 21:21:37 +0200
committerLennart Poettering <lennart@poettering.net>2008-07-19 21:21:37 +0200
commit87f063d3446003907efbc74eaf1723a74fb6df1d (patch)
treedc417a4e34012865df6652375b50a5665442e5f0
parentbe3bdba18c0873fc5f54742a12469a6ffbae9b12 (diff)
fix write file logic
-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;
}