diff options
| author | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-12-25 13:21:15 -0500 |
|---|---|---|
| committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-12-25 13:21:15 -0500 |
| commit | 399b6d3a0c8e693a483edaab9b9ca7bcea81302f (patch) | |
| tree | 9b4b1bd226d3fd9595598ad8528a9c43077a5907 /src/common/string_util.cpp | |
| parent | e17c343915556c5a3a99f1a1640bda189c60e565 (diff) | |
fsp_srv: Use ReadBufferSpan
Diffstat (limited to 'src/common/string_util.cpp')
| -rw-r--r-- | src/common/string_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index b26db47961..e0b6180c55 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp @@ -30,7 +30,7 @@ std::string ToUpper(std::string str) { return str; } -std::string StringFromBuffer(const std::vector<u8>& data) { +std::string StringFromBuffer(std::span<const u8> data) { return std::string(data.begin(), std::find(data.begin(), data.end(), '\0')); } |
