mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06: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
|
@ -38,7 +38,7 @@ void Manager::WakeupHandler::Ping(std::string_view where) {
|
|||
// Calling DBG_LOG calls fprintf, which isn't safe to call in a signal
|
||||
// handler.
|
||||
if ( signal_val != 0 )
|
||||
DBG_LOG(DBG_MAINLOOP, "Pinging WakeupHandler from %s", where.data());
|
||||
DBG_LOG(DBG_MAINLOOP, "Pinging WakeupHandler from %.*s", static_cast<int>(where.size()), where.data());
|
||||
|
||||
flare.Fire(true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue