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