diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index e9cdeab93..cbef34ff7 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1404,7 +1404,7 @@ class TreeSocket : public InspSocket if (this->keylength) { // pad it to the key length - int n = line.length() % this->keylength; + int n = this->keylength - (line.length() % this->keylength); if (n) { log(DEBUG,"Append %d chars to line to make it %d long from %d, key length %d",n,n+line.length(),line.length(),this->keylength); |