projects
/
crypto.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14803d2
)
Added bigger read buffer.
author
Pekka Riikonen
<priikone@silcnet.org>
Wed, 14 Mar 2007 15:32:12 +0000
(15:32 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Wed, 14 Mar 2007 15:32:12 +0000
(15:32 +0000)
lib/silcsftp/sftp_fs_memory.c
patch
|
blob
|
history
diff --git
a/lib/silcsftp/sftp_fs_memory.c
b/lib/silcsftp/sftp_fs_memory.c
index 7e7c24f43716438b9fa0b1c097b5d46408af9fef..18cce4d056ad4a133df7056fa3241467a0e6eaa8 100644
(file)
--- 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[
3276
8];
+ unsigned char data[
6348
8];
int ret;
- if (len >
3276
8)
- len =
3276
8;
+ if (len >
6348
8)
+ len =
6348
8;
ret = lseek(h->fd, (off_t)offset, SEEK_SET);
if (ret < 0) {