[Box Backup-dev] COMMIT r495 - box/chris/general/lib/common

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Thu Feb 23 22:12:09 GMT 2006


Author: chris
Date: 2006-02-23 22:12:01 +0000 (Thu, 23 Feb 2006)
New Revision: 495

Modified:
   box/chris/general/lib/common/FdGetLine.h
Log:
* FdGetLine.h
- Make sure that the GetLine buffer is big enough for at least one UTF-8
  character from console_read, otherwise bbackupquery will fail in
  debug mode.


Modified: box/chris/general/lib/common/FdGetLine.h
===================================================================
--- box/chris/general/lib/common/FdGetLine.h	2006-02-23 20:43:13 UTC (rev 494)
+++ box/chris/general/lib/common/FdGetLine.h	2006-02-23 22:12:01 UTC (rev 495)
@@ -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




More information about the Boxbackup-dev mailing list