0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

ircd::db: Provide len to elide the strlen(buf) on string_view{buf}.

This commit is contained in:
Jason Volk 2017-12-26 04:00:52 -07:00
parent 59bd14e862
commit 01feeaab6e

View file

@ -1068,7 +1068,7 @@ ircd::db::database::logs::Logv(const rocksdb::InfoLogLevel level,
const auto str
{
// RocksDB adds annoying leading whitespace to attempt to right-justify things and idc
lstrip(buf, ' ')
lstrip(string_view{buf, size_t(len)}, ' ')
};
// Skip the options for now