diff options
Diffstat (limited to 'src/scp.c')
-rw-r--r-- | src/scp.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -119,7 +119,7 @@ error: int ssh_scp_init(ssh_scp scp) { int rc; - char execbuffer[1024] = {0}; + char execbuffer[PATH_MAX] = {0}; char *quoted_location = NULL; size_t quoted_location_len = 0; size_t scp_location_len; @@ -319,7 +319,7 @@ void ssh_scp_free(ssh_scp scp) */ int ssh_scp_push_directory(ssh_scp scp, const char *dirname, int mode) { - char buffer[1024] = {0}; + char buffer[PATH_MAX] = {0}; int rc; char *dir = NULL; char *perms = NULL; @@ -456,7 +456,7 @@ int ssh_scp_leave_directory(ssh_scp scp) int ssh_scp_push_file64(ssh_scp scp, const char *filename, uint64_t size, int mode) { - char buffer[1024] = {0}; + char buffer[PATH_MAX] = {0}; int rc; char *file = NULL; char *perms = NULL; @@ -769,7 +769,7 @@ int ssh_scp_read_string(ssh_scp scp, char *buffer, size_t len) */ int ssh_scp_pull_request(ssh_scp scp) { - char buffer[MAX_BUF_SIZE] = {0}; + char buffer[PATH_MAX] = {0}; char *mode = NULL; char *p, *tmp; uint64_t size; |