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; }