From eed9299081dcb91787b98b1049d20ca0d355a50c Mon Sep 17 00:00:00 2001 From: manojampalam Date: Wed, 23 Mar 2016 22:14:44 -0700 Subject: [PATCH] Fixes to SFTP progress meter --- contrib/win32/win32compat/includes/sys/param.h | 7 +++---- progressmeter.c | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/win32/win32compat/includes/sys/param.h b/contrib/win32/win32compat/includes/sys/param.h index e1beba6..2607d96 100644 --- a/contrib/win32/win32compat/includes/sys/param.h +++ b/contrib/win32/win32compat/includes/sys/param.h @@ -4,10 +4,9 @@ /* Compatibility header to avoid lots of #ifdef _WIN32's in includes.h */ typedef unsigned int uid_t; typedef unsigned int gid_t; -typedef long _off_t; -typedef long off_t; -typedef unsigned int _dev_t; -typedef unsigned int dev_t; +//typedef size_t _off_t; +typedef size_t off_t; +typedef _dev_t dev_t; #endif diff --git a/progressmeter.c b/progressmeter.c index 16cd68e..9625745 100644 --- a/progressmeter.c +++ b/progressmeter.c @@ -313,4 +313,5 @@ setscreensize(void) win_size = DEFAULT_WINSIZE; win_size += 1; /* trailing \0 */ #endif + win_size = DEFAULT_WINSIZE + 1; }