From 9bac04d35fe7d3f7011edad4baac407e897bdeb2 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Fri, 27 Apr 2018 09:24:22 +0300 Subject: [PATCH] regex_impl: Fix a potential format string flaw --- src/regex_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regex_impl.cc b/src/regex_impl.cc index 46ccbae0..d88397ea 100644 --- a/src/regex_impl.cc +++ b/src/regex_impl.cc @@ -1138,7 +1138,7 @@ struct TestVM : CompiledRegex, ThreadedRegexVM : 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) {