summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-12-09 17:16:42 +0100
committerLiam <byteslice@airmail.cc>2023-12-09 17:18:10 +0100
commitfe5e4bd846c9a10a11b8b3747b8618552c588006 (patch)
treeb212ccf083b0e231a0eee271bef8dc1a8413eb50 /src/core
parentMerge pull request #12274 from liamwhite/srgb-nonsense (diff)
downloadyuzu-fe5e4bd846c9a10a11b8b3747b8618552c588006.tar
yuzu-fe5e4bd846c9a10a11b8b3747b8618552c588006.tar.gz
yuzu-fe5e4bd846c9a10a11b8b3747b8618552c588006.tar.bz2
yuzu-fe5e4bd846c9a10a11b8b3747b8618552c588006.tar.lz
yuzu-fe5e4bd846c9a10a11b8b3747b8618552c588006.tar.xz
yuzu-fe5e4bd846c9a10a11b8b3747b8618552c588006.tar.zst
yuzu-fe5e4bd846c9a10a11b8b3747b8618552c588006.zip
Diffstat (limited to '')
-rw-r--r--src/core/arm/debug.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/arm/debug.cpp b/src/core/arm/debug.cpp
index 1fe37b8ee..af1c34bc3 100644
--- a/src/core/arm/debug.cpp
+++ b/src/core/arm/debug.cpp
@@ -282,6 +282,8 @@ Loader::AppLoader::Modules FindModules(const Kernel::KProcess* process) {
// Ignore leading directories.
char* path_pointer = module_path.path.data();
+ char* path_end =
+ path_pointer + std::min(PathLengthMax, module_path.path_length);
for (s32 i = 0; i < std::min(PathLengthMax, module_path.path_length) &&
module_path.path[i] != '\0';
@@ -292,7 +294,8 @@ Loader::AppLoader::Modules FindModules(const Kernel::KProcess* process) {
}
// Insert output.
- modules.emplace(svc_mem_info.base_address, path_pointer);
+ modules.emplace(svc_mem_info.base_address,
+ std::string_view(path_pointer, path_end));
}
}
}