diff -urp tin-2.4.1_r3/src/wildmat.c tin-2.4.1_r4/src/wildmat.c --- tin-2.4.1_r3/src/wildmat.c 2016-10-12 17:28:02.000000000 +0200 +++ tin-2.4.1_r4/src/wildmat.c 2017-02-21 17:27:28.000000000 +0100 @@ -169,7 +169,7 @@ wildmatpos( int srch_offsets_size) { char *txt, *t, *px; - int i; + int i, prev_offset = srch_offsets[1]; t_bool ret = FALSE; if (srch_offsets_size >= 2) @@ -199,7 +199,7 @@ wildmatpos( /* remove the leading '*' */ px = my_strdup(p + 1); - for (t = txt; *t; t++) + for (t = txt + prev_offset; *t; t++) if ((ret = (DoMatch(t, px))) == TRUE) { /* remove the trailing '*' */ px[strlen(px) - 1] = '\0';