if iconv conversion failed, restore input buffer to its initial state

master
Andrzej Rybczak 17 years ago
parent e99b1c63e9
commit 5866cd6343
  1. 1
      src/charset.cpp

@ -74,6 +74,7 @@ namespace
if (iconv(cd, const_cast<ICONV_CONST char **>(&inbuf), &len, &outbuf, &buflen) == size_t(-1))
{
inbuf = instart;
delete [] outstart;
iconv_close(cd);
return;

Loading…
Cancel
Save