mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
Fix clang-tidy bugprone-suspicious-stringview-data-usage warnings
This commit is contained in:
parent
02589c349a
commit
975f24bde6
13 changed files with 28 additions and 19 deletions
|
@ -467,7 +467,7 @@ void Reporter::Deprecation(std::string_view msg, const detail::Location* loc1, c
|
|||
if ( loc1 || loc2 )
|
||||
PushLocation(loc1, loc2);
|
||||
|
||||
Warning("%s", msg.data());
|
||||
Warning("%.*s", static_cast<int>(msg.size()), msg.data());
|
||||
|
||||
if ( loc1 || loc2 )
|
||||
PopLocation();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue