diff options
author | Chris Wilson <chris+github@qwirx.com> | 2006-10-12 20:53:55 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2006-10-12 20:53:55 +0000 |
commit | 16be2942dbbe7a1de30b70a95563c7229bc50286 (patch) | |
tree | 97240498abb66a02d86ed3f4822291b5655ae866 /lib/common/FdGetLine.h | |
parent | b06bcf956e25514dd257d885fcdc7b544727aed9 (diff) |
* Make FDGETLINE_BUFFER_SIZE big enough for one unicode character on Win32,
otherwise reading from console can fail due to insufficient buffer size.
Diffstat (limited to 'lib/common/FdGetLine.h')
-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 |