OSDN Git Service

Enlarge buffers for replies on transferring files.
authors_kawamoto <s_kawamoto@users.sourceforge.jp>
Tue, 7 Feb 2012 12:37:58 +0000 (21:37 +0900)
committers_kawamoto <s_kawamoto@users.sourceforge.jp>
Tue, 7 Feb 2012 12:37:58 +0000 (21:37 +0900)
FFFTP_Eng_Release/FFFTP.exe
Release/FFFTP.exe
getput.c

index 4b5efe9..828fbce 100644 (file)
Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
index e8e09a2..788eb77 100644 (file)
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
index 949a069..f727637 100644 (file)
--- a/getput.c
+++ b/getput.c
@@ -1375,7 +1375,9 @@ static int DownLoadNonPassive(TRANSPACKET *Pkt, int *CancelCheckWork)
        int iLength;\r
        SOCKET data_socket = INVALID_SOCKET;   // data channel socket\r
        SOCKET listen_socket = INVALID_SOCKET; // data listen socket\r
        int iLength;\r
        SOCKET data_socket = INVALID_SOCKET;   // data channel socket\r
        SOCKET listen_socket = INVALID_SOCKET; // data listen socket\r
-       char Buf[1024];\r
+       // 念のため\r
+//     char Buf[1024];\r
+       char Buf[FMAX_PATH+1024];\r
        int CreateMode;\r
        // IPv6対応\r
 //     struct sockaddr_in saSockAddr1;\r
        int CreateMode;\r
        // IPv6対応\r
 //     struct sockaddr_in saSockAddr1;\r
@@ -1490,7 +1492,9 @@ static int DownLoadPassive(TRANSPACKET *Pkt, int *CancelCheckWork)
 {\r
        int iRetCode;\r
        SOCKET data_socket = INVALID_SOCKET;   // data channel socket\r
 {\r
        int iRetCode;\r
        SOCKET data_socket = INVALID_SOCKET;   // data channel socket\r
-       char Buf[1024];\r
+       // 念のため\r
+//     char Buf[1024];\r
+       char Buf[FMAX_PATH+1024];\r
        int CreateMode;\r
        // IPv6対応\r
 //     char Adrs[20];\r
        int CreateMode;\r
        // IPv6対応\r
 //     char Adrs[20];\r
@@ -2645,7 +2649,9 @@ static int UpLoadNonPassive(TRANSPACKET *Pkt)
        int iLength;\r
        SOCKET data_socket = INVALID_SOCKET;   // data channel socket\r
        SOCKET listen_socket = INVALID_SOCKET; // data listen socket\r
        int iLength;\r
        SOCKET data_socket = INVALID_SOCKET;   // data channel socket\r
        SOCKET listen_socket = INVALID_SOCKET; // data listen socket\r
-       char Buf[1024];\r
+       // 念のため\r
+//     char Buf[1024];\r
+       char Buf[FMAX_PATH+1024];\r
        // IPv6対応\r
 //     struct sockaddr_in saSockAddr1;\r
        struct sockaddr_in saSockAddrIPv4;\r
        // IPv6対応\r
 //     struct sockaddr_in saSockAddr1;\r
        struct sockaddr_in saSockAddrIPv4;\r
@@ -2774,7 +2780,9 @@ static int UpLoadPassive(TRANSPACKET *Pkt)
 {\r
        int iRetCode;\r
        SOCKET data_socket = INVALID_SOCKET;   // data channel socket\r
 {\r
        int iRetCode;\r
        SOCKET data_socket = INVALID_SOCKET;   // data channel socket\r
-       char Buf[1024];\r
+       // 念のため\r
+//     char Buf[1024];\r
+       char Buf[FMAX_PATH+1024];\r
        // IPv6対応\r
 //     char Adrs[20];\r
        char Adrs[40];\r
        // IPv6対応\r
 //     char Adrs[20];\r
        char Adrs[40];\r