diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-07-19 21:21:37 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-07-19 21:21:37 +0200 |
commit | 87f063d3446003907efbc74eaf1723a74fb6df1d (patch) | |
tree | dc417a4e34012865df6652375b50a5665442e5f0 | |
parent | be3bdba18c0873fc5f54742a12469a6ffbae9b12 (diff) |
fix write file logic
-rw-r--r-- | strpool.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |