]> granicus.if.org Git - curl/commitdiff
tool_easysrc.c: fix --libcurl option output file text translation mode
authorYang Tse <yangsita@gmail.com>
Sun, 18 Mar 2012 04:54:10 +0000 (05:54 +0100)
committerYang Tse <yangsita@gmail.com>
Sun, 18 Mar 2012 04:54:10 +0000 (05:54 +0100)
Use fopen() with "w" mode instead of "wt" to fix cygwin builds.

src/tool_easysrc.c

index 00dbd0ac30a825ec63957b06fd33f4fe571daead..59664bddfda8c07d8811dd7d5ba2ae3e6e719dc9 100644 (file)
@@ -176,7 +176,7 @@ void dumpeasysrc(struct Configurable *config)
     FILE *out;
     bool fopened = FALSE;
     if(strcmp(o, "-")) {
-      out = fopen(o, "wt");
+      out = fopen(o, "w");
       fopened = TRUE;
     }
     else