Update examples/scp.c to fix bug where large files on win32 would cause got to wrap and go negative
This commit is contained in:
parent
6c84a426be
commit
a49f479b4c
@ -43,7 +43,7 @@ int main(int argc, char *argv[])
|
|||||||
const char *scppath="/tmp/TEST";
|
const char *scppath="/tmp/TEST";
|
||||||
libssh2_struct_stat fileinfo;
|
libssh2_struct_stat fileinfo;
|
||||||
int rc;
|
int rc;
|
||||||
off_t got=0;
|
libssh2_struct_stat_size got = 0;
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
WSADATA wsadata;
|
WSADATA wsadata;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user