summaryrefslogtreecommitdiff
path: root/src/misc.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-05-10 17:53:53 -0400
committerAdam <Adam@anope.org>2012-05-10 17:53:53 -0400
commit9370b063d0d8ecdd479370ee8c1d7946fbcad4be (patch)
tree6203d66dc991e310b2c071ec4dc812c7566c8a11 /src/misc.cpp
parentd5ffae0e46a822ea358a8a87ea6910c5f2532bf7 (diff)
Fixed crash on access del + valgrind errors
Diffstat (limited to 'src/misc.cpp')
-rw-r--r--src/misc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.cpp b/src/misc.cpp
index fbc110ef3..e5ad71d45 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -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;