browser-plugin: Fix enable/disable

This code was broken at the last minute, and an accidentally stale plugin
copy kept it untested.

https://bugzilla.gnome.org/show_bug.cgi?id=676837
This commit is contained in:
Jasper St. Pierre 2012-05-28 19:26:02 -04:00
parent 985641cc2e
commit ad6d986172

View File

@ -515,9 +515,9 @@ plugin_enable_extension (PluginObject *obj,
if (enabled)
{
new_uuids = g_new (const gchar *, length + 2); /* New key, NULL */
memcpy (new_uuids, uuids, length);
new_uuids[length - 2] = uuid_str;
new_uuids[length - 1] = NULL;
memcpy (new_uuids, uuids, length * sizeof (*new_uuids));
new_uuids[length] = uuid_str;
new_uuids[length + 1] = NULL;
}
else
{