summaryrefslogtreecommitdiff
path: root/plugins/WebView/src/webview_services.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-11-30 18:51:36 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-11-30 18:51:36 +0000
commit688f55ba998c19304a29727c910504903f4cc49a (patch)
tree69121ebb6d02bcf9e670428b11813087fc7f1640 /plugins/WebView/src/webview_services.cpp
parent4f0e30cdf56fbafdf955bbe8b93930bab9e39bd0 (diff)
lstr* replacements
git-svn-id: http://svn.miranda-ng.org/main/trunk@11176 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WebView/src/webview_services.cpp')
-rw-r--r--plugins/WebView/src/webview_services.cpp8
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