adding NUL byte to file read in parser

This commit is contained in:
Josh Holtrop 2010-05-06 15:44:40 -04:00
parent 44bf780a42
commit 8cc4edfca3

View File

@ -37,6 +37,9 @@ bool I_CLASSNAME::parse(istream & i)
if (size <= 0) if (size <= 0)
return false; return false;
/* append trailing NUL byte for pcre functions */
buff.push_back('\0');
} }
#ifdef I_NAMESPACE #ifdef I_NAMESPACE