From d43b027c25701c17940784858d1abdf4f376b1d2 Mon Sep 17 00:00:00 2001 From: Fyren Date: Fri, 2 Oct 2009 02:30:01 -0700 Subject: [PATCH] Fixed crash when block-loading more than 8 plugins (bug 4034, r=dvander). --- core/PluginInfoDatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);