diff options
Diffstat (limited to 'plugins/CmdLine/src')
-rw-r--r-- | plugins/CmdLine/src/utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CmdLine/src/utils.cpp b/plugins/CmdLine/src/utils.cpp index 066dc41aa0..df4f62e31d 100644 --- a/plugins/CmdLine/src/utils.cpp +++ b/plugins/CmdLine/src/utils.cpp @@ -191,8 +191,8 @@ MCONTACT GetContactFromID(char *szID, char *szProto) GetContactProto(hContact, cProtocol, sizeof(cProtocol));
char *szHandle = GetContactID(hContact, cProtocol);
- char *tmp = (char*) pcli->pfnGetContactDisplayName(hContact, 0);
- strncpy_s(dispName, tmp, _TRUNCATE);
+ wchar_t *tmp = pcli->pfnGetContactDisplayName(hContact, 0);
+ strncpy_s(dispName, _T2A(tmp), _TRUNCATE);
if ((szHandle) && ((mir_strcmpi(szHandle, szID) == 0) || (mir_strcmpi(dispName, szID) == 0)) && ((szProto == NULL) || (_stricmp(szProto, cProtocol) == 0)))
found = 1;
|