diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-01 20:50:59 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-01 20:50:59 +0000 |
commit | d6331b6e7bbef9facc7e6c8bdc42ed4e7b58668d (patch) | |
tree | 44032474a6abe389fcc2c5302743c019f95d7074 /protocols/Xfire/src/client.cpp | |
parent | cbf1506b70dfa0e5e6a7ef9107b6e0f127d7724e (diff) |
XFire:
- Major cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@12294 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/client.cpp')
-rw-r--r-- | protocols/Xfire/src/client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Xfire/src/client.cpp b/protocols/Xfire/src/client.cpp index 7fa31f99bc..024cfc16d9 100644 --- a/protocols/Xfire/src/client.cpp +++ b/protocols/Xfire/src/client.cpp @@ -92,7 +92,7 @@ using namespace std; struct sockaddr_in sa;
int iLen = sizeof(sa);
getsockname(socket->m_sock, (SOCKADDR*)&sa, &iLen);
- strcpy(this->localaddr,inet_ntoa(sa.sin_addr));
+ strncpy(this->localaddr,inet_ntoa(sa.sin_addr), sizeof(this->localaddr)-1);
this->llocaladdr=inet_addr(this->localaddr);
packetReader->setSocket(socket);
|