From 4bb6a09697b5f55a66bba431bc2ac98b1535973d Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Tue, 17 Aug 2010 19:03:51 -0400 Subject: Clarify null character append in m_cloaking (fixes compiler warning) --- src/modules/m_cloaking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_cloaking.cpp') 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); -- cgit v1.2.3