summaryrefslogtreecommitdiff
path: root/src/modules/options/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/options/options.cpp')
-rw-r--r--src/modules/options/options.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/options/options.cpp b/src/modules/options/options.cpp
index bfdcb82147..f9ae5965f7 100644
--- a/src/modules/options/options.cpp
+++ b/src/modules/options/options.cpp
@@ -209,7 +209,7 @@ static TCHAR* GetPluginName(HINSTANCE hInstance, TCHAR *buffer, int size)
else
dllName++;
- _tcsncpy(buffer, dllName, size);
+ _tcsncpy_s(buffer, size, dllName, _TRUNCATE);
return buffer;
}
@@ -517,7 +517,7 @@ static void RebuildPageTree(HWND hdlg, OptionsDlgData *dat)
else
pos = szFileName;
- _tcsncpy(dat->szFilterString, pos, SIZEOF(dat->szFilterString));
+ _tcsncpy_s(dat->szFilterString, pos, _TRUNCATE);
}
else {
int sel = SendDlgItemMessage(hdlg, IDC_KEYWORD_FILTER, (UINT)CB_GETCURSEL, 0, 0);
@@ -528,7 +528,7 @@ static void RebuildPageTree(HWND hdlg, OptionsDlgData *dat)
TCHAR *pos = _tcsrchr(szFileName, _T('\\'));
if (pos) pos++;
else pos = szFileName;
- _tcsncpy(dat->szFilterString, pos, SIZEOF(dat->szFilterString));
+ _tcsncpy_s(dat->szFilterString, pos, _TRUNCATE);
}
}