about summary refs log tree commit diff stats
path: root/src/LYNews.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1999-07-30 16:06:54 -0400
committerThomas E. Dickey <dickey@invisible-island.net>1999-07-30 16:06:54 -0400
commit9c512bbadc47a7de000f53f11a7620d83ca0ddba (patch)
tree8580cd97bbe59c18fa8d8ee0dbf8e67e1ad413db /src/LYNews.c
parenta2a1ab1ed484fec332c6dcccb8d033f1c33bb0b5 (diff)
downloadlynx-snapshots-9c512bbadc47a7de000f53f11a7620d83ca0ddba.tar.gz
snapshot of project "lynx", label v2-8-3dev_5
Diffstat (limited to 'src/LYNews.c')
-rw-r--r--src/LYNews.c7
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);
     }