mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-13 04:29:03 -04:00
Removed a strlen()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3126 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
0ebea11505
commit
daff96bf56
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user