From 5c08872066861ffa095a7165cc36ffd1c96892d6 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 28 Nov 2011 23:31:52 +0100 Subject: [PATCH] Extra byte for NULL in addons_convert_to_simple_regexp --- extensions/addons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5