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:
keith-daigle 2015-09-09 17:59:54 -04:00 committed by Alexander Lamaison
parent 6c84a426be
commit a49f479b4c

View File

@ -43,7 +43,7 @@ int main(int argc, char *argv[])
const char *scppath="/tmp/TEST";
libssh2_struct_stat fileinfo;
int rc;
off_t got=0;
libssh2_struct_stat_size got = 0;
#ifdef WIN32
WSADATA wsadata;