diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-07 16:57:52 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-07 16:57:52 +0000 |
commit | daff96bf568a51de4e4ec460240e093c43b11ff3 (patch) | |
tree | c956965b2bc1da1f94a4046efde4fed742b3c837 | |
parent | 0ebea1150578ffbc56b438ae2f85c6dc86153ed3 (diff) |
Removed a strlen()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3126 e03df62e-2008-0410-955e-edbf42e46eb7
-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 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; |