diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-23 18:08:26 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-23 18:08:26 +0000 |
commit | 9cadeadaff74b37df1c2896e653a80b3ce4c86f6 (patch) | |
tree | 399715b05def27cc4e13ced2cbefad3a17b77c4e /plugins/Folders | |
parent | 6fcfba2c46a456677b5825a899469ba4e8905448 (diff) |
replace _tcsncpy to mir_tstrncpy
git-svn-id: http://svn.miranda-ng.org/main/trunk@13786 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Folders')
-rw-r--r-- | plugins/Folders/src/services.cpp | 2 | ||||
-rw-r--r-- | plugins/Folders/src/utils.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Folders/src/services.cpp b/plugins/Folders/src/services.cpp index b8ec3c4ae9..008daa2254 100644 --- a/plugins/Folders/src/services.cpp +++ b/plugins/Folders/src/services.cpp @@ -39,7 +39,7 @@ INT_PTR ExpandPath(TCHAR *szResult, TCHAR *format, int size) input = mir_tstrdup(format);
TCHAR *core_result = Utils_ReplaceVarsT(input);
- _tcsncpy(szResult, core_result, size);
+ mir_tstrncpy(szResult, core_result, size);
mir_free(core_result);
diff --git a/plugins/Folders/src/utils.cpp b/plugins/Folders/src/utils.cpp index 4b3a310871..90670505a1 100644 --- a/plugins/Folders/src/utils.cpp +++ b/plugins/Folders/src/utils.cpp @@ -186,7 +186,7 @@ int GetStringFromDatabase(char *szSettingName, const wchar_t *szError, TCHAR *sz if (db_get_ws(NULL, ModuleName, szSettingName, &dbv) == 0) {
size_t tmp = mir_tstrlen(dbv.ptszVal);
len = (tmp < size - 1) ? tmp : size - 1;
- _tcsncpy(szResult, dbv.ptszVal, len);
+ mir_tstrncpy(szResult, dbv.ptszVal, len);
szResult[len] = '\0';
db_free(&dbv);
return 0;
@@ -194,7 +194,7 @@ int GetStringFromDatabase(char *szSettingName, const wchar_t *szError, TCHAR *sz size_t tmp = mir_tstrlen(szError);
len = (tmp < size - 1) ? tmp : size - 1;
- _tcsncpy(szResult, szError, len);
+ mir_tstrncpy(szResult, szError, len);
szResult[len] = '\0';
return 1;
}
|