From c4c52af569d05b676613b6f48c4c7b010b5ac251 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 26 Jan 2006 14:21:54 +0000 Subject: Damn string exceptions git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2925 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dynamic.cpp | 2 +- src/modules/m_ident.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/dynamic.cpp b/src/dynamic.cpp index e96c9d905..73edf4e6b 100644 --- a/src/dynamic.cpp +++ b/src/dynamic.cpp @@ -72,7 +72,7 @@ DLLManager::DLLManager(char *fname) err = (char*)dlerror(); close(fd); // We can delete the tempfile once it's loaded, leaving just the inode. - unlink(tmpfile_template); + //unlink(tmpfile_template); #endif } diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 09b291144..0ea69d6d9 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -54,9 +54,10 @@ class RFC1413 : public InspSocket virtual bool OnDataReady() { - std::string databuf = this->Read(); - if (databuf != "") + char* nbuf = this->Read(); + if (nbuf) { + std::string databuf = nbuf; char ibuf[1024]; strlcpy(ibuf,databuf.c_str(),1024); Srv->Log(DEBUG,"Received ident response"); -- cgit v1.2.3