diff options
Diffstat (limited to 'src/LYNews.c')
-rw-r--r-- | src/LYNews.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/LYNews.c b/src/LYNews.c index 538f1287..75bd26d2 100644 --- a/src/LYNews.c +++ b/src/LYNews.c @@ -121,7 +121,12 @@ PUBLIC char *LYNewsPost ARGS2( * Open a temporary file for the headers * and message body. - FM */ - if ((fd = LYOpenTemp(my_tempfile, HTML_SUFFIX, "w")) == NULL) { +#ifdef __DJGPP__ + if ((fd = LYOpenTemp(my_tempfile, HTML_SUFFIX, "wb")) == NULL) +#else + if ((fd = LYOpenTemp(my_tempfile, HTML_SUFFIX, "w")) == NULL) +#endif /* __DJGPP__ */ + { HTAlert(CANNOT_OPEN_TEMP); return(postfile); } |