adding NUL byte to file read in parser
This commit is contained in:
1 parent
44bf780a42
commit
8cc4edfca3
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user