summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-01-23 17:24:05 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2024-01-23 17:24:05 +0100
commitfc5d76e6e2f92795537ac44b69da19ec4c48250d (patch)
tree560135737473d575a2f415d8490b4981ebff4a3b /src/core/hle/service/vi
parentMerge pull request #12579 from FernandoS27/smmu (diff)
downloadyuzu-fc5d76e6e2f92795537ac44b69da19ec4c48250d.tar
yuzu-fc5d76e6e2f92795537ac44b69da19ec4c48250d.tar.gz
yuzu-fc5d76e6e2f92795537ac44b69da19ec4c48250d.tar.bz2
yuzu-fc5d76e6e2f92795537ac44b69da19ec4c48250d.tar.lz
yuzu-fc5d76e6e2f92795537ac44b69da19ec4c48250d.tar.xz
yuzu-fc5d76e6e2f92795537ac44b69da19ec4c48250d.tar.zst
yuzu-fc5d76e6e2f92795537ac44b69da19ec4c48250d.zip
Diffstat (limited to 'src/core/hle/service/vi')
-rw-r--r--src/core/hle/service/vi/vi.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index bfcc27ddc..1f3d82c57 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -15,6 +15,7 @@
#include "common/logging/log.h"
#include "common/math_util.h"
#include "common/settings.h"
+#include "common/string_util.h"
#include "common/swap.h"
#include "core/core_timing.h"
#include "core/hle/kernel/k_readable_event.h"
@@ -694,9 +695,7 @@ private:
void OpenLayer(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto name_buf = rp.PopRaw<std::array<u8, 0x40>>();
- const auto end = std::find(name_buf.begin(), name_buf.end(), '\0');
-
- const std::string display_name(name_buf.begin(), end);
+ const std::string display_name(Common::StringFromBuffer(name_buf));
const u64 layer_id = rp.Pop<u64>();
const u64 aruid = rp.Pop<u64>();