mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Add some safety to file names. This fixes a buffer overrun when extracting everything from an ISO.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5537 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -39,7 +39,7 @@ struct SFileInfo
|
||||
|
||||
SFileInfo(const SFileInfo &rhs) : m_NameOffset(rhs.m_NameOffset),
|
||||
m_Offset(rhs.m_Offset), m_FileSize(rhs.m_FileSize) {
|
||||
memcpy(m_FullPath, rhs.m_FullPath, strlen(rhs.m_FullPath));
|
||||
memcpy(m_FullPath, rhs.m_FullPath, strlen(rhs.m_FullPath) + 1);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user