lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev DOS newsposting - PATCH


From: Doug Kaufman
Subject: lynx-dev DOS newsposting - PATCH
Date: Fri, 23 Jul 1999 04:55:11 -0700 (PDT)

Newsposting under the DJGPP port with WATT-32 wasn't working. This fixes
the problem.
                              Doug

--- lynx2-8-3/src/LYNews.c      Tue Apr 27 05:59:06 1999
+++ lynx2-8-3/src/LYNews.c.new  Fri Jul 23 04:38:10 1999
@@ -117,7 +117,12 @@
      *  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);
     }

__
Doug Kaufman
Internet: address@hidden (preferred)
          address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]