From: Christian Dywan Date: Mon, 28 Nov 2011 22:31:52 +0000 (+0100) Subject: Extra byte for NULL in addons_convert_to_simple_regexp X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c08872066861ffa095a7165cc36ffd1c96892d6;p=midori Extra byte for NULL in addons_convert_to_simple_regexp --- diff --git a/extensions/addons.c b/extensions/addons.c index f0dc8c95..b98899b9 100644 --- a/extensions/addons.c +++ b/extensions/addons.c @@ -1365,7 +1365,7 @@ addons_convert_to_simple_regexp (const gchar* pattern) gchar c; len = strlen (pattern); - dest = g_malloc0 (len * 2 + 1); + dest = g_malloc0 (len * 2 + 2); dest[0] = '^'; pos = 1;