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