Changeset 985


Ignore:
Timestamp:
12/10/2006 21:53:55 (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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/FdGetLine.h

    r217 r985  
    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.