Skip to content

Commit

Permalink
FileManagement: Use const ref for Filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonicadvance1 committed Sep 9, 2024
1 parent a308b9e commit d706372
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit d706372

Please sign in to comment.