1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 06:36:41 +02:00

Fixed crash on access del + valgrind errors

This commit is contained in:
Adam
2012-05-10 17:53:53 -04:00
parent d5ffae0e46
commit 9370b063d0
4 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -669,7 +669,7 @@ bool Anope::Match(const Anope::string &str, const Anope::string &mask, bool case
}
}
if (mask[m] == '*')
if (m < mask_len && mask[m] == '*')
++m;
return m == mask_len;