We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac4bf81 commit 43dc5f0Copy full SHA for 43dc5f0
scp.c
@@ -185,6 +185,11 @@ pid_t do_cmd_pid2 = -1;
185
186
/* SFTP copy parameters */
187
#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
+*/
193
#define MAX_SFTP_COPY_BUFLEN 204800
194
#define DEFAULT_COPY_BUFLEN 32768
195
size_t sftp_copy_buflen = DEFAULT_COPY_BUFLEN;
0 commit comments