summaryrefslogtreecommitdiff
blob: 7390642bb690055f869e07e2b0e897a6d031cb85 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -731,7 +731,7 @@
 	GList *tmplist = g_list_first(level);
 	while (tmplist) {
 		Tpattern * pat = (Tpattern *)tmplist->data;
-		memset(pat->ovector,0,sizeof(pat->ovector));
+		memset(pat->ovector,0,sizeof(&pat->ovector));
 		pat->is_match = FALSE;
 		patmatch_init_run(pat->childs);
 		tmplist = g_list_next(tmplist);