summaryrefslogtreecommitdiff
path: root/src/modules/m_cloaking.cpp
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2010-08-17 19:03:51 -0400
committerDaniel De Graaf <danieldg@inspircd.org>2010-08-17 19:03:51 -0400
commit4bb6a09697b5f55a66bba431bc2ac98b1535973d (patch)
treec511ebd4ef524b2b5a89261608e3213d505c8c9c /src/modules/m_cloaking.cpp
parent5a4200a056a2400c700844465208846310f9c95e (diff)
Clarify null character append in m_cloaking (fixes compiler warning)
Diffstat (limited to 'src/modules/m_cloaking.cpp')
-rw-r--r--src/modules/m_cloaking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 70f335c1c..5b1b73f37 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -198,7 +198,7 @@ class ModuleCloaking : public Module
input.reserve(key.length() + 3 + item.length());
input.append(1, id);
input.append(key);
- input.append(1, 0); // null does not terminate a C++ string
+ input.append(1, '\0'); // null does not terminate a C++ string
input.append(item);
std::string rv = Hash->sum(input).substr(0,len);