adding NUL byte to file read in parser

This commit is contained in:
Josh Holtrop committed 2010-05-06 15:44:40 -04:00
1 parent 44bf780a42
commit 8cc4edfca3
1 file changed
+3
+3
View File
@@ -37,6 +37,9 @@ bool I_CLASSNAME::parse(istream & i)
if (size <= 0)
return false;
/* append trailing NUL byte for pcre functions */
buff.push_back('\0');
}
#ifdef I_NAMESPACE