]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_blockcaps.cpp
Fixes to some stuff that writes on memory it shouldn't (thanks psychon).
[user/henk/code/inspircd.git] / src / modules / m_blockcaps.cpp
index 23658a9fa3e36883551bc725056638331af6f40a..31542befda534203dc354c2a2a4662d041c9d7a2 100644 (file)
@@ -107,7 +107,7 @@ public:
                std::string hmap = Conf.ReadValue("blockcaps", "capsmap", 0);
                if (hmap.empty())
                        hmap = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
-               memset(&capsmap, 0, 255);
+               memset(capsmap, 0, sizeof(capsmap));
                for (std::string::iterator n = hmap.begin(); n != hmap.end(); n++)
                        capsmap[(unsigned char)*n] = 1;
                if (percent < 1 || percent > 100)