]> git.ipfire.org Git - thirdparty/libatasmart.git/commitdiff
fix write file logic
authorLennart Poettering <lennart@poettering.net>
Sat, 19 Jul 2008 19:21:37 +0000 (21:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 19 Jul 2008 19:21:37 +0000 (21:21 +0200)
strpool.c

index 51337bd1da29ab70230d88aeec1b3cbda123a861..f44517fd99747497bc925b2fa82c6c17283c81ca 100644 (file)
--- 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;
         }