From: brain Date: Mon, 19 Dec 2005 14:57:22 +0000 (+0000) Subject: std::string doesnt like null chars?! X-Git-Tag: v2.0.23~9503 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=cc85560b5765549dac241aaa78ce4d82189cd1dc;p=user%2Fhenk%2Fcode%2Finspircd.git std::string doesnt like null chars?! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2571 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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);