Changeset 887


Ignore:
Timestamp:
31/08/2006 23:29:31 (5 years ago)
Author:
chris
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/merge/lib/common/FdGetLine.h

    r886 r887  
    1515#ifdef NDEBUG 
    1616        #define FDGETLINE_BUFFER_SIZE           1024 
     17#elif defined WIN32 
     18        // need enough space for at least one unicode character  
     19        // in UTF-8 when calling console_read() from bbackupquery 
     20        #define FDGETLINE_BUFFER_SIZE           5 
    1721#else 
    1822        #define FDGETLINE_BUFFER_SIZE           4 
Note: See TracChangeset for help on using the changeset viewer.