diff options
| author | donkopunchstania <donkopunchstania@gmail.com> | 2010-05-29 19:37:29 +0000 |
|---|---|---|
| committer | donkopunchstania <donkopunchstania@gmail.com> | 2010-05-29 19:37:29 +0000 |
| commit | 55fd46de26797e1aaab70ee35487d3263858768e (patch) | |
| tree | c41f02900673a0512b2616b89fdf307e51303606 /Source/Core/DiscIO | |
| parent | bdeefd361a1598cfe3bdac81431092d94512ddaf (diff) | |
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
Diffstat (limited to 'Source/Core/DiscIO')
| -rw-r--r-- | Source/Core/DiscIO/Src/Filesystem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/Src/Filesystem.h b/Source/Core/DiscIO/Src/Filesystem.h index 2fa44ecb81..c50e8f8f0a 100644 --- a/Source/Core/DiscIO/Src/Filesystem.h +++ b/Source/Core/DiscIO/Src/Filesystem.h @@ -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); } }; |
