diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-31 20:38:31 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-31 20:38:31 +0000 |
commit | ff035d5933b88c564fdbf8ef5f899b6fa3ac63bb (patch) | |
tree | b7624e680b476c2115ce09fb6b799792252a6534 /plugins/TipperYM/src/popwin.cpp | |
parent | c213884746cb362887c9e01058dbc636ed222add (diff) |
Tipper YM:
-Minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@12578 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TipperYM/src/popwin.cpp')
-rw-r--r-- | plugins/TipperYM/src/popwin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TipperYM/src/popwin.cpp b/plugins/TipperYM/src/popwin.cpp index 1a6e9d0518..23eccb1026 100644 --- a/plugins/TipperYM/src/popwin.cpp +++ b/plugins/TipperYM/src/popwin.cpp @@ -338,9 +338,9 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa if (iXstatus) { char szIconProto[64]; if (strcmp(szProto, META_PROTO) != 0) - strcpy(szIconProto, szProto); + strncpy(szIconProto, szProto, sizeof(szIconProto) - 1); else if (!db_get_s(pwd->hContact, szProto, "XStatusProto", &dbv)) { - strcpy(szIconProto, dbv.pszVal); + strncpy(szIconProto, dbv.pszVal, sizeof(szIconProto) - 1); db_free(&dbv); } |