From 865216b15a4cfb836dddcb9bf66532b4f46497a3 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 2 Feb 2012 07:47:19 +0000 Subject: cSocket API fix (possible invalid pointer) cMCLogger slight change (CS ptr -> member) git-svn-id: http://mc-server.googlecode.com/svn/trunk@222 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cSocket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cSocket.h') diff --git a/source/cSocket.h b/source/cSocket.h index 44c3bea4b..395815389 100644 --- a/source/cSocket.h +++ b/source/cSocket.h @@ -55,9 +55,9 @@ public: cSocket Accept(); int Receive( char* a_Buffer, unsigned int a_Length, unsigned int a_Flags ); - char* GetIPString() { return m_IPString; } + const AString & GetIPString(void) const { return m_IPString; } private: xSocket m_Socket; - char* m_IPString; + AString m_IPString; }; \ No newline at end of file -- cgit v1.2.3