adding NUL byte to file read in parser
This commit is contained in:
parent
44bf780a42
commit
8cc4edfca3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user