summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xwsdl2c/codewriter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsdl2c/codewriter.c b/wsdl2c/codewriter.c
index 7f46b7f..dae0062 100755
--- a/wsdl2c/codewriter.c
+++ b/wsdl2c/codewriter.c
@@ -96,7 +96,7 @@ void codeWriteStubSource(struct CallList *cl, const char* filename)
static
int openSourceFile(const char* filename)
{
- source = fopen(filename, "w");
+ source = fopen(filename, "wb");
if (!source) return 0;
return 1;
}
@@ -110,7 +110,7 @@ void closeSourceFile()
static
int openHeaderFile(const char* filename)
{
- header= fopen(filename, "w");
+ header= fopen(filename, "wb");
if (!header) return 0;
return 1;
}