Extra byte for NULL in addons_convert_to_simple_regexp

This commit is contained in:
Christian Dywan 2011-11-28 23:31:52 +01:00
parent 760270832a
commit 5c08872066

View file

@ -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;