summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-07 16:57:52 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-07 16:57:52 +0000
commitdaff96bf568a51de4e4ec460240e093c43b11ff3 (patch)
treec956965b2bc1da1f94a4046efde4fed742b3c837 /src/modules/m_spanningtree.cpp
parent0ebea1150578ffbc56b438ae2f85c6dc86153ed3 (diff)
Removed a strlen()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3126 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 9d29ae6ca..10a3191f7 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1308,7 +1308,7 @@ class TreeSocket : public InspSocket
{
char* line = (char*)in_buffer.c_str();
std::string ret = "";
- while ((*line != '\n') && (strlen(line)))
+ while ((*line != '\n') && (*line))
{
if ((*line != '\r') && (*line != '\n'))
ret = ret + *line;