From a49f479b4c4c225faec9620fe1cb5d3f0eadc0a0 Mon Sep 17 00:00:00 2001 From: keith-daigle Date: Wed, 9 Sep 2015 17:59:54 -0400 Subject: [PATCH] Update examples/scp.c to fix bug where large files on win32 would cause got to wrap and go negative --- example/scp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/scp.c b/example/scp.c index 51dd3839..e8e4217d 100644 --- a/example/scp.c +++ b/example/scp.c @@ -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;