summaryrefslogtreecommitdiffstats
path: root/src/common/string_util.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-10-14 19:11:08 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-10-14 20:09:34 +0200
commit0d6057b2fa98f08a461edaf584e9ac75f7fdecde (patch)
tree8c641f7adf5387c40601cd335bac9bd4097c815b /src/common/string_util.h
parentstring_util: Prevent out of bounds access in u16string_view buffer (diff)
downloadyuzu-0d6057b2fa98f08a461edaf584e9ac75f7fdecde.tar
yuzu-0d6057b2fa98f08a461edaf584e9ac75f7fdecde.tar.gz
yuzu-0d6057b2fa98f08a461edaf584e9ac75f7fdecde.tar.bz2
yuzu-0d6057b2fa98f08a461edaf584e9ac75f7fdecde.tar.lz
yuzu-0d6057b2fa98f08a461edaf584e9ac75f7fdecde.tar.xz
yuzu-0d6057b2fa98f08a461edaf584e9ac75f7fdecde.tar.zst
yuzu-0d6057b2fa98f08a461edaf584e9ac75f7fdecde.zip
Diffstat (limited to '')
-rw-r--r--src/common/string_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/string_util.h b/src/common/string_util.h
index 7e90a9ca5..f0dd632ee 100644
--- a/src/common/string_util.h
+++ b/src/common/string_util.h
@@ -63,7 +63,7 @@ template <typename InIt>
* Creates a std::string from a fixed-size NUL-terminated char buffer. If the buffer isn't
* NUL-terminated then the string ends at max_len characters.
*/
-[[nodiscard]] std::string StringFromFixedZeroTerminatedBuffer(const char* buffer,
+[[nodiscard]] std::string StringFromFixedZeroTerminatedBuffer(std::string_view buffer,
std::size_t max_len);
/**