OSDN Git Service

Fix bugs of corruption on resuming downloading files larger than 4GB.
[ffftp/ffftp.git] / history.c
index a2aec84..3f535df 100644 (file)
--- a/history.c
+++ b/history.c
@@ -224,11 +224,17 @@ static void CopyHostToHistory(HOSTDATA *Host, HISTORYDATA *New)
        New->DialupNotify = Host->DialupNotify;\r
        strcpy(New->DialEntry, Host->DialEntry);\r
        // 暗号化通信対応\r
+       New->UseNoEncryption = Host->UseNoEncryption;\r
        New->UseFTPES = Host->UseFTPES;\r
        New->UseFTPIS = Host->UseFTPIS;\r
        New->UseSFTP = Host->UseSFTP;\r
+       strcpy(New->PrivateKey, Host->PrivateKey);\r
        // 同時接続対応\r
        New->MaxThreadCount = Host->MaxThreadCount;\r
+       // MLSD対応\r
+       New->UseMLSD = Host->UseMLSD;\r
+       // IPv6対応\r
+       New->UseIPv6 = Host->UseIPv6;\r
        return;\r
 }\r
 \r
@@ -279,11 +285,17 @@ void CopyHistoryToHost(HISTORYDATA *Hist, HOSTDATA *Host)
        Host->DialupNotify = Hist->DialupNotify;\r
        strcpy(Host->DialEntry, Hist->DialEntry);\r
        // 暗号化通信対応\r
+       Host->UseNoEncryption = Hist->UseNoEncryption;\r
        Host->UseFTPES = Hist->UseFTPES;\r
        Host->UseFTPIS = Hist->UseFTPIS;\r
        Host->UseSFTP = Hist->UseSFTP;\r
+       strcpy(Host->PrivateKey, Hist->PrivateKey);\r
        // 同時接続対応\r
        Host->MaxThreadCount = Hist->MaxThreadCount;\r
+       // MLSD対応\r
+       Host->UseMLSD = Hist->UseMLSD;\r
+       // IPv6対応\r
+       Host->UseIPv6 = Hist->UseIPv6;\r
        return;\r
 }\r
 \r