mirror of
https://github.com/libssh2/libssh2.git
synced 2025-08-01 11:26:53 +03:00
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:
committed by
Alexander Lamaison
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;
|
||||||
|
Reference in New Issue
Block a user