Loweynet
Revisão | 698970baae62125ab8fd5d0e71a2835187288c7d (tree) |
---|---|
Hora | 2012-02-07 21:37:58 |
Autor | s_kawamoto <s_kawamoto@user...> |
Commiter | s_kawamoto |
Enlarge buffers for replies on transferring files.
@@ -1375,7 +1375,9 @@ static int DownLoadNonPassive(TRANSPACKET *Pkt, int *CancelCheckWork) | ||
1375 | 1375 | int iLength; |
1376 | 1376 | SOCKET data_socket = INVALID_SOCKET; // data channel socket |
1377 | 1377 | SOCKET listen_socket = INVALID_SOCKET; // data listen socket |
1378 | - char Buf[1024]; | |
1378 | + // 念のため | |
1379 | +// char Buf[1024]; | |
1380 | + char Buf[FMAX_PATH+1024]; | |
1379 | 1381 | int CreateMode; |
1380 | 1382 | // IPv6対応 |
1381 | 1383 | // struct sockaddr_in saSockAddr1; |
@@ -1490,7 +1492,9 @@ static int DownLoadPassive(TRANSPACKET *Pkt, int *CancelCheckWork) | ||
1490 | 1492 | { |
1491 | 1493 | int iRetCode; |
1492 | 1494 | SOCKET data_socket = INVALID_SOCKET; // data channel socket |
1493 | - char Buf[1024]; | |
1495 | + // 念のため | |
1496 | +// char Buf[1024]; | |
1497 | + char Buf[FMAX_PATH+1024]; | |
1494 | 1498 | int CreateMode; |
1495 | 1499 | // IPv6対応 |
1496 | 1500 | // char Adrs[20]; |
@@ -2645,7 +2649,9 @@ static int UpLoadNonPassive(TRANSPACKET *Pkt) | ||
2645 | 2649 | int iLength; |
2646 | 2650 | SOCKET data_socket = INVALID_SOCKET; // data channel socket |
2647 | 2651 | SOCKET listen_socket = INVALID_SOCKET; // data listen socket |
2648 | - char Buf[1024]; | |
2652 | + // 念のため | |
2653 | +// char Buf[1024]; | |
2654 | + char Buf[FMAX_PATH+1024]; | |
2649 | 2655 | // IPv6対応 |
2650 | 2656 | // struct sockaddr_in saSockAddr1; |
2651 | 2657 | struct sockaddr_in saSockAddrIPv4; |
@@ -2774,7 +2780,9 @@ static int UpLoadPassive(TRANSPACKET *Pkt) | ||
2774 | 2780 | { |
2775 | 2781 | int iRetCode; |
2776 | 2782 | SOCKET data_socket = INVALID_SOCKET; // data channel socket |
2777 | - char Buf[1024]; | |
2783 | + // 念のため | |
2784 | +// char Buf[1024]; | |
2785 | + char Buf[FMAX_PATH+1024]; | |
2778 | 2786 | // IPv6対応 |
2779 | 2787 | // char Adrs[20]; |
2780 | 2788 | char Adrs[40]; |