Removed a strlen()

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3126 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-02-07 16:57:52 +00:00
parent 0ebea11505
commit daff96bf56

View File

@ -1308,7 +1308,7 @@ class TreeSocket : public InspSocket
{ {
char* line = (char*)in_buffer.c_str(); char* line = (char*)in_buffer.c_str();
std::string ret = ""; std::string ret = "";
while ((*line != '\n') && (strlen(line))) while ((*line != '\n') && (*line))
{ {
if ((*line != '\r') && (*line != '\n')) if ((*line != '\r') && (*line != '\n'))
ret = ret + *line; ret = ret + *line;