regex_impl: Fix a potential format string flaw

This commit is contained in:
Frank LENORMAND 2018-04-27 09:24:22 +03:00
parent 8438b33175
commit 9bac04d35f

View File

@ -1138,7 +1138,7 @@ struct TestVM : CompiledRegex, ThreadedRegexVM<const char*, dir>
: CompiledRegex{compile_regex(re, dir == MatchDirection::Forward ?
RegexCompileFlags::None : RegexCompileFlags::Backward)},
VMType{(const CompiledRegex&)*this}
{ if (dump) printf(dump_regex(*this).c_str()); }
{ if (dump) puts(dump_regex(*this).c_str()); }
bool exec(StringView re, RegexExecFlags flags = RegexExecFlags::AnyMatch)
{