change sizeof to TmpMount.size (#2523)

Co-authored-by: smiRaphi <neogt404@gmail.com>
This commit is contained in:
smiRaphi
2025-02-24 11:44:22 +01:00
committed by GitHub
parent ad68318515
commit f975c0603c

View File

@@ -323,7 +323,7 @@ int PS4_SYSV_ABI sceAppContentTemporaryDataMount2(OrbisAppContentTemporaryDataOp
return ORBIS_APP_CONTENT_ERROR_PARAMETER; return ORBIS_APP_CONTENT_ERROR_PARAMETER;
} }
static constexpr std::string_view TmpMount = "/temp0"; static constexpr std::string_view TmpMount = "/temp0";
TmpMount.copy(mountPoint->data, sizeof(mountPoint->data)); TmpMount.copy(mountPoint->data, TmpMount.size());
LOG_INFO(Lib_AppContent, "sceAppContentTemporaryDataMount2: option = {}, mountPoint = {}", LOG_INFO(Lib_AppContent, "sceAppContentTemporaryDataMount2: option = {}, mountPoint = {}",
option, mountPoint->data); option, mountPoint->data);
return ORBIS_OK; return ORBIS_OK;