Extra byte for NULL in addons_convert_to_simple_regexp
This commit is contained in:
parent
760270832a
commit
5c08872066
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue