diff options
Diffstat (limited to 'plugins/WebView/src/webview_services.cpp')
-rw-r--r-- | plugins/WebView/src/webview_services.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/WebView/src/webview_services.cpp b/plugins/WebView/src/webview_services.cpp index 1b9e8ae0e7..924b8ab9e6 100644 --- a/plugins/WebView/src/webview_services.cpp +++ b/plugins/WebView/src/webview_services.cpp @@ -225,7 +225,7 @@ INT_PTR GetCaps(WPARAM wParam, LPARAM) INT_PTR GetName(WPARAM wParam, LPARAM lParam) { - lstrcpynA((char*) lParam, MODULENAME, wParam); + mir_strncpy((char*) lParam, MODULENAME, wParam); return 0; } @@ -248,7 +248,7 @@ INT_PTR SetStatus(WPARAM wParam, LPARAM lParam) bpStatus = wParam; ProtoBroadcastAck(MODULENAME, NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE) oldStatus, wParam); -
+ // Make sure no contact has offline status for any reason on first time run if ( db_get_b(NULL, MODULENAME, "FirstTime", 100) == 100) { for (MCONTACT hContact = db_find_first(MODULENAME); hContact != NULL; hContact = db_find_next(hContact, MODULENAME)) @@ -319,12 +319,12 @@ INT_PTR BasicSearch(WPARAM wParam, LPARAM lParam) static TCHAR buf[300]; if (lParam) - lstrcpyn(buf, (const TCHAR*) lParam, 256); + mir_tstrncpy(buf, (const TCHAR*) lParam, 256); if (searchId != -1) return 0; // only one search at a time - lstrcpyn(sID, (TCHAR*)lParam, SIZEOF(sID)); + mir_tstrncpy(sID, (TCHAR*)lParam, SIZEOF(sID)); searchId = 1; // create a thread for the ID search |