From 7ab874b3f6aaf6c7c868dbce74042dfa0a705c95 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sun, 8 Sep 2024 19:11:01 -0700 Subject: [PATCH] FileManagement: Use const ref for Filename --- Source/Tools/LinuxEmulation/LinuxSyscalls/FileManagement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/FileManagement.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/FileManagement.cpp index 5386cd8697..1ce46e332b 100644 --- a/Source/Tools/LinuxEmulation/LinuxSyscalls/FileManagement.cpp +++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/FileManagement.cpp @@ -750,7 +750,7 @@ uint64_t FileManager::Readlinkat(int dirfd, const char* pathname, char* buf, siz snprintf(PidSelfPath, 50, "/proc/%i/exe", CurrentPID); if (Path == "/proc/self/exe" || Path == "/proc/thread-self/exe" || Path == PidSelfPath) { - auto App = Filename(); + const auto& App = Filename(); strncpy(buf, App.c_str(), bufsiz); return std::min(bufsiz, App.size()); }