mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +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
|
@ -981,8 +981,8 @@ static zeek::expected<ValPtr, std::string> BuildVal(const rapidjson::Value& j, c
|
|||
else if ( unit == "usec" || unit == "usecs" )
|
||||
interval_secs += (value * Microseconds);
|
||||
else
|
||||
return zeek::unexpected<std::string>(
|
||||
util::fmt("wrong interval format, invalid unit type %s", unit.data()));
|
||||
return zeek::unexpected<std::string>(util::fmt("wrong interval format, invalid unit type %.*s",
|
||||
static_cast<int>(unit.size()), unit.data()));
|
||||
}
|
||||
|
||||
return make_intrusive<IntervalVal>(interval_secs, Seconds);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue