mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38: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
|
@ -118,7 +118,8 @@ bool MMDB::EnsureLoaded() {
|
|||
|
||||
if ( ! res && ! reported_error ) {
|
||||
reported_error = true;
|
||||
zeek::emit_builtin_error(zeek::util::fmt("Failed to open %s", Description().data()));
|
||||
zeek::emit_builtin_error(
|
||||
zeek::util::fmt("Failed to open %.*s", static_cast<int>(Description().size()), Description().data()));
|
||||
}
|
||||
|
||||
return res;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue