diff options
author | Chris Wilson <chris+github@qwirx.com> | 2006-08-31 22:29:31 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2006-08-31 22:29:31 +0000 |
commit | 0de8b64db1faec206adcffbd5e9c8d72f4930288 (patch) | |
tree | 1fbfca95b075646a85b79bcc87a1d639d313ca14 /lib | |
parent | 926350684c452b7d8c73cd2c11bed49be6139f17 (diff) |
Make FDGETLINE_BUFFER_SIZE big enough for one unicode character on Win32,
otherwise reading from console can fail due to insufficient buffer size.
(refs #3)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common/FdGetLine.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |