# HG changeset patch # User Fyren # Date 1254475801 25200 # Node ID af581de191197d2bfa3a8e2ff26f465971835de8 # Parent 2ceb5b2b0da0db0f430d47faf1964e7f8980e293 Fixed crash when block-loading more than 8 plugins (bug 4034, r=dvander). diff -r 2ceb5b2b0da0 -r af581de19119 core/PluginInfoDatabase.cpp --- a/core/PluginInfoDatabase.cpp Fri Oct 02 02:26:11 2009 -0700 +++ b/core/PluginInfoDatabase.cpp Fri Oct 02 02:30:01 2009 -0700 @@ -276,7 +276,7 @@ { 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);