diff options
| -rw-r--r-- | Source/Core/Core/FifoPlayer/FifoDataFile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Core/FifoPlayer/FifoDataFile.cpp b/Source/Core/Core/FifoPlayer/FifoDataFile.cpp index 1e7ec5d77e..5c30081393 100644 --- a/Source/Core/Core/FifoPlayer/FifoDataFile.cpp +++ b/Source/Core/Core/FifoPlayer/FifoDataFile.cpp @@ -274,7 +274,8 @@ std::unique_ptr<FifoDataFile> FifoDataFile::Load(const std::string& filename, bo } else { - dataFile->m_game_id = std::string{header.gameid, DEFAULT_GAME_ID.size()}; + const size_t gameid_length = strnlen(header.gameid, DEFAULT_GAME_ID.size()); + dataFile->m_game_id = std::string{header.gameid, gameid_length}; } if (flagsOnly) |
