From 16be2942dbbe7a1de30b70a95563c7229bc50286 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 12 Oct 2006 20:53:55 +0000 Subject: * Make FDGETLINE_BUFFER_SIZE big enough for one unicode character on Win32, otherwise reading from console can fail due to insufficient buffer size. --- lib/common/FdGetLine.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/common') diff --git a/lib/common/FdGetLine.h b/lib/common/FdGetLine.h index fecb0371..a18007a3 100644 --- a/lib/common/FdGetLine.h +++ b/lib/common/FdGetLine.h @@ -14,6 +14,10 @@ #ifdef NDEBUG #define FDGETLINE_BUFFER_SIZE 1024 +#elif defined WIN32 + // need enough space for at least one unicode character + // in UTF-8 when calling console_read() from bbackupquery + #define FDGETLINE_BUFFER_SIZE 5 #else #define FDGETLINE_BUFFER_SIZE 4 #endif -- cgit v1.2.3