lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev [PATCH] to dev15 - fix for win32


From: Hiroyuki Senshu
Subject: lynx-dev [PATCH] to dev15 - fix for win32
Date: Mon, 22 Nov 1999 13:45:32 +0900

* Bug in LYGetHostByName code fixed (Windows only problem). - SH

---
diff -Bur lynx283.d15/WWW/Library/Implementation/HTTCP.c 
lynx283.w32/WWW/Library/Implementation/HTTCP.c
--- lynx283.d15/WWW/Library/Implementation/HTTCP.c      Thu Oct 21 23:56:48 1999
+++ lynx283.w32/WWW/Library/Implementation/HTTCP.c      Mon Nov 22 10:21:04 1999
@@ -693,6 +693,12 @@
        return NULL;
     }
 
+#ifdef _WINDOWS_NSL    /* 1999/11/21 (Sun) 21:35:19 */
+    strncpy(host, str, (size_t)512);
+#else
+    host = str;
+#endif /* _WINDOWS_NSL */
+
     if (!valid_hostname(host)) {
        lynx_nsl_status = HT_NOT_ACCEPTABLE;
 #ifdef NO_RECOVERY
@@ -704,12 +710,6 @@
 #endif
        return NULL;
     }
-
-#ifdef _WINDOWS_NSL
-    strncpy(host, str, (size_t)512);
-#else
-    host = str;
-#endif /*  _WINDOWS_NSL */
 
 #ifdef MVS     /* Outstanding problem with crash in MVS gethostbyname */
     CTRACE((tfp, "LYGetHostByName: Calling gethostbyname(%s)\n", host));
----

--
山形県立産業技術短期大学校 庄内校 電子情報科
 千秋 広幸 (E-Mail address@hidden)

reply via email to

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