From cc85560b5765549dac241aaa78ce4d82189cd1dc Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 19 Dec 2005 14:57:22 +0000 Subject: [PATCH] std::string doesnt like null chars?! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2571 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 49493b423..9a5b13734 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1193,7 +1193,7 @@ class TreeSocket : public InspSocket while (line.length() % this->keylength != 0) { // pad it to be a multiple of the key length - line = line + "\0"; + line = line + "\n"; } } ctx->Encrypt(line.c_str(), result, line.length(),0); -- 2.39.5