summaryrefslogtreecommitdiff
path: root/plugins/HistoryLinkListPlus
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HistoryLinkListPlus')
-rw-r--r--plugins/HistoryLinkListPlus/src/linklist_dlg.cpp2
-rw-r--r--plugins/HistoryLinkListPlus/src/linklist_fct.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp b/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp
index a163166dd6..07da9e4f59 100644
--- a/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp
+++ b/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp
@@ -177,7 +177,7 @@ INT_PTR CALLBACK MainDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
break;
EmptyClipboard();
- dataLen = (_tcslen(link) + 1) * sizeof(TCHAR);
+ dataLen = (mir_tstrlen(link) + 1) * sizeof(TCHAR);
hData = GlobalAlloc(GMEM_MOVEABLE, dataLen);
_tcscpy_s((LPTSTR)GlobalLock(hData), dataLen / 2, link);
GlobalUnlock(hData);
diff --git a/plugins/HistoryLinkListPlus/src/linklist_fct.cpp b/plugins/HistoryLinkListPlus/src/linklist_fct.cpp
index 38e4ec32b9..e745d627fc 100644
--- a/plugins/HistoryLinkListPlus/src/linklist_fct.cpp
+++ b/plugins/HistoryLinkListPlus/src/linklist_fct.cpp
@@ -116,7 +116,7 @@ int ExtractURI(DBEVENTINFO *dbei, MEVENT hEvent, LISTELEMENT *listStart)
CharLower(wordsearch);
for (j = 0; j < SIZEOF(hyperlinkPrefixes); j ++) {
- if (!_tcsncmp(wordsearch, hyperlinkPrefixes[j], _tcslen(hyperlinkPrefixes[j]))) {
+ if (!_tcsncmp(wordsearch, hyperlinkPrefixes[j], mir_tstrlen(hyperlinkPrefixes[j]))) {
isLink = 1;
break;
}
@@ -803,7 +803,7 @@ void GetListInfo(BYTE params, LISTELEMENT *listStart, LPCTSTR searchString, siz
{
(*elementCount)++;
- tempLen = _tcslen(actualElement->link);
+ tempLen = mir_tstrlen(actualElement->link);
if (*maxLen < tempLen)
*maxLen = tempLen;
}