summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2018-04-27 09:24:22 +0300
committerFrank LENORMAND <lenormf@gmail.com>2018-04-27 09:24:22 +0300
commit9bac04d35fe7d3f7011edad4baac407e897bdeb2 (patch)
tree78a0c25740f74984383880a58d00ec19b1578d2c /src
parent8438b3317500d9fff62453e54e8643d063e02282 (diff)
regex_impl: Fix a potential format string flaw
Diffstat (limited to 'src')
-rw-r--r--src/regex_impl.cc2
1 files changed, 1 insertions, 1 deletions
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<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)
{