diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-26 19:12:58 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-26 19:12:58 +0000 |
commit | 4a8c316dee19fa86010139abc0b29829599a5133 (patch) | |
tree | 23cb631c012877dd7ff452a64999d95b25e8a9df /src/modules | |
parent | 99b6380933cd5f80dc052dc085b6615b3d055734 (diff) |
Removed unneccessary strlcpy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2927 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_ident.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 0ea69d6d9..3bffa388b 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -54,13 +54,9 @@ class RFC1413 : public InspSocket virtual bool OnDataReady() { - char* nbuf = this->Read(); - if (nbuf) + char* ibuf = this->Read(); + if (ibuf) { - std::string databuf = nbuf; - char ibuf[1024]; - strlcpy(ibuf,databuf.c_str(),1024); - Srv->Log(DEBUG,"Received ident response"); char* savept; char* section = strtok_r(ibuf,":",&savept); while (section) |