From d2a05d667e0e7ef90c94d765c723185fcce01a30 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Wed, 14 Mar 2007 15:32:12 +0000 Subject: [PATCH] Added bigger read buffer. --- lib/silcsftp/sftp_fs_memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/silcsftp/sftp_fs_memory.c b/lib/silcsftp/sftp_fs_memory.c index 7e7c24f4..18cce4d0 100644 --- a/lib/silcsftp/sftp_fs_memory.c +++ b/lib/silcsftp/sftp_fs_memory.c @@ -619,11 +619,11 @@ void mem_read(void *context, SilcSFTP sftp, void *callback_context) { MemFSFileHandle h = (MemFSFileHandle)handle; - unsigned char data[32768]; + unsigned char data[63488]; int ret; - if (len > 32768) - len = 32768; + if (len > 63488) + len = 63488; ret = lseek(h->fd, (off_t)offset, SEEK_SET); if (ret < 0) { -- 2.24.0