diff options
Diffstat (limited to 'plugins/TrafficCounter/src/options.cpp')
-rw-r--r-- | plugins/TrafficCounter/src/options.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TrafficCounter/src/options.cpp b/plugins/TrafficCounter/src/options.cpp index 4d63814a8b..bdbd4cfd6c 100644 --- a/plugins/TrafficCounter/src/options.cpp +++ b/plugins/TrafficCounter/src/options.cpp @@ -192,7 +192,7 @@ static INT_PTR CALLBACK DlgProcTCOptions(HWND hwndDlg, UINT msg, WPARAM wParam, for (i = j = 0; (j < NumberOfAccounts) && (i < optionCount) ; i++)
if ((options[i].dwFlag & OPTTREE_INVISIBLE) && !options[i].szSettingName)
{
- options[i].szSettingName = (char*)mir_alloc(1 + strlen(ProtoList[j].name));
+ options[i].szSettingName = (char*)mir_alloc(1 + mir_strlen(ProtoList[j].name));
strcpy(options[i].szSettingName, ProtoList[j].name);
size_t l = 20 + _tcslen(ProtoList[j].tszAccountName);
options[i].szOptionName = (TCHAR*)mir_alloc(sizeof(TCHAR) * l);
|