* fhandler_clipboard.cc (fhandler_dev_clipboard::read): Use

read-ahead buffer for reading Windows clipboard if caller's
	buffer is too small for complete characters.
	* include/limits.h: Remove outdated TODO comment.
This commit is contained in:
Corinna Vinschen
2012-08-17 09:23:34 +00:00
parent 46f5dd5958
commit 74d1d0ee80
3 changed files with 55 additions and 7 deletions

View File

@ -36,8 +36,7 @@ details. */
/* Maximum length of a multibyte character. */
#ifndef MB_LEN_MAX
/* TODO: This is newlib's max value. We should probably rather define our
own _mbtowc_r and _wctomb_r functions which are only codepage dependent. */
/* Use value from newlib. */
#define MB_LEN_MAX 8
#endif