1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

DtHelp: Coverity (memory corruption, moderate)

This commit is contained in:
Jon Trulson 2014-12-26 15:49:43 -07:00
parent 539f785df9
commit 7887e99477

View file

@ -891,7 +891,7 @@ int _DtHelpCeIconvStr(
}
else /* reuse the buffer */
{
int len = strlen(fromStr);
int len = strlen(fromStr) + 1;
if (len > toStrBufLen)
*ret_toStr = realloc(toStrBuf,len);
else