Skip to content

Commit 43dc5f0

Browse files
committed
address review feedback
1 parent ac4bf81 commit 43dc5f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scp.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ pid_t do_cmd_pid2 = -1;
185185

186186
/* SFTP copy parameters */
187187
#ifdef WINDOWS
188+
/*
189+
* Since MODE_SFTP calls do_download with inplace_flag=1,
190+
* need to initialize buf to standard value and not exceed 204800
191+
* in order to prevent file truncation
192+
*/
188193
#define MAX_SFTP_COPY_BUFLEN 204800
189194
#define DEFAULT_COPY_BUFLEN 32768
190195
size_t sftp_copy_buflen = DEFAULT_COPY_BUFLEN;

0 commit comments

Comments
 (0)