From 87f063d3446003907efbc74eaf1723a74fb6df1d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 19 Jul 2008 21:21:37 +0200 Subject: fix write file logic --- strpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit