Subject: sftp_write_sliding.c bug

sftp_write_sliding.c bug

From: zl liu <xieepp_at_gmail.com>
Date: Tue, 10 May 2011 14:47:32 +0800

Hi all£º
sftp_write_sliding.c£º line 237
I modified like this:
nread = fread(&mem[memuse], 1, sizeof(mem)-memuse, local);
        if (nread <= 0) {
            /* end of file */
            if (memuse > 0){
                /* the previous sending is not finished */
                nread = 0;
            }
            else{
                break;
            }
        }

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-05-10