diff --git a/core/PluginInfoDatabase.cpp b/core/PluginInfoDatabase.cpp index 2ee18097..c5feeded 100644 --- a/core/PluginInfoDatabase.cpp +++ b/core/PluginInfoDatabase.cpp @@ -276,7 +276,7 @@ SMCResult CPluginInfoDatabase::ReadSMC_LeavingSection(const SMCStates *states) { m_infodb_size *= 2; } - int newidx = memtab->CreateMem(m_infodb_size, (void **)&table); + int newidx = memtab->CreateMem(m_infodb_size * sizeof(int), (void **)&table); if (m_infodb != -1) { void *oldtable = (int *)memtab->GetAddress(m_infodb);