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:
parent
985641cc2e
commit
ad6d986172
@ -515,9 +515,9 @@ plugin_enable_extension (PluginObject *obj,
|
|||||||
if (enabled)
|
if (enabled)
|
||||||
{
|
{
|
||||||
new_uuids = g_new (const gchar *, length + 2); /* New key, NULL */
|
new_uuids = g_new (const gchar *, length + 2); /* New key, NULL */
|
||||||
memcpy (new_uuids, uuids, length);
|
memcpy (new_uuids, uuids, length * sizeof (*new_uuids));
|
||||||
new_uuids[length - 2] = uuid_str;
|
new_uuids[length] = uuid_str;
|
||||||
new_uuids[length - 1] = NULL;
|
new_uuids[length + 1] = NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user