Another compile fix for msvc.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29742 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-05-19 20:30:43 +00:00
parent 091d4e58e3
commit 5c692aeef2

View File

@ -230,7 +230,7 @@ iconv_convert(IconvProcessor & processor, InType const * buf, size_t buflen)
if (outbuf.size() < maxoutbufsize)
outbuf.resize(maxoutbufsize);
int bytes = processor.convert(inbuf, inbytesleft, outbuf.data(), outbuf.size());
int bytes = processor.convert(inbuf, inbytesleft, &outbuf[0], outbuf.size());
if (bytes <= 0)
// Conversion failed
// FIXME Maybe throw an exception and handle that in the caller?