]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
std::string doesnt like null chars?!
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 19 Dec 2005 14:57:22 +0000 (14:57 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 19 Dec 2005 14:57:22 +0000 (14:57 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2571 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree.cpp

index 49493b423970d4f75f7e50130d1229ca2816d7d1..9a5b13734d94bb637429fc6c1746fb62f112ec58 100644 (file)
@@ -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);