From babf7873a3fe373d60ef22b1b671d98e014d8819 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 22 May 2015 19:52:29 +0000 Subject: replace strcpy to mir_strcpy git-svn-id: http://svn.miranda-ng.org/main/trunk@13763 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbEditorPP/src/addeditsettingsdlg.cpp | 2 +- plugins/DbEditorPP/src/exportimport.cpp | 8 ++++---- plugins/DbEditorPP/src/settinglist.cpp | 4 ++-- plugins/DbEditorPP/src/watchedvars.cpp | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/DbEditorPP') diff --git a/plugins/DbEditorPP/src/addeditsettingsdlg.cpp b/plugins/DbEditorPP/src/addeditsettingsdlg.cpp index 5eff743b33..95f7f6dda1 100644 --- a/plugins/DbEditorPP/src/addeditsettingsdlg.cpp +++ b/plugins/DbEditorPP/src/addeditsettingsdlg.cpp @@ -352,7 +352,7 @@ INT_PTR CALLBACK EditSettingDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l if (IsWindowVisible(GetDlgItem(hwnd, IDC_STRING)) || (saveAsType(hwnd) == 3)) memcpy(value, "\0\0", 2); else - strcpy(value, "0"); + mir_strcpy(value, "0"); // delete the old setting if (mir_strcmp(setting, dbsetting->setting) && dbsetting->setting && (dbsetting->setting)[0] != 0) diff --git a/plugins/DbEditorPP/src/exportimport.cpp b/plugins/DbEditorPP/src/exportimport.cpp index 7f594a4eb5..8618de7a97 100644 --- a/plugins/DbEditorPP/src/exportimport.cpp +++ b/plugins/DbEditorPP/src/exportimport.cpp @@ -348,20 +348,20 @@ void importSettings(MCONTACT hContact, char *importstring) else if (importstring[i] == '[' && !strchr(&importstring[i + 1], '=')) { // get the module if (end = strpbrk(&importstring[i + 1], "]")) { *end = '\0'; - strcpy(module, &importstring[i + 1]); + mir_strcpy(module, &importstring[i + 1]); } } else if (importstring[i] == '-' && importstring[i + 1] == '[' && !strchr(&importstring[i + 2], '=')) { // get the module if (end = strpbrk(&importstring[i + 2], "]")) { *end = '\0'; - strcpy(module, &importstring[i + 2]); + mir_strcpy(module, &importstring[i + 2]); deleteModule(module, hContact, 1); } } else if (strstr(&importstring[i], "=") && module[0]) { // get the setting if (end = strpbrk(&importstring[i + 1], "=")) { *end = '\0'; - strcpy(setting, &importstring[i]); + mir_strcpy(setting, &importstring[i]); // get the type type = *(end + 1); @@ -563,7 +563,7 @@ void ImportSettingsFromFileMenuItem(MCONTACT hContact, char* FilePath) } while (szFileNames[index]) { - strcpy(szFile, szPath); + mir_strcpy(szFile, szPath); strcat(szFile, &szFileNames[index]); index += (int)mir_strlen(&szFileNames[index]) + 1; diff --git a/plugins/DbEditorPP/src/settinglist.cpp b/plugins/DbEditorPP/src/settinglist.cpp index 6b23e41586..cd27631faa 100644 --- a/plugins/DbEditorPP/src/settinglist.cpp +++ b/plugins/DbEditorPP/src/settinglist.cpp @@ -566,8 +566,8 @@ void EditLabel(HWND hwnd2List, int item, int subitem) } data->hContact = info->hContact; - strcpy(data->module, info->module); - strcpy(data->setting, setting); + mir_strcpy(data->module, info->module); + mir_strcpy(data->setting, setting); data->item = item; data->subitem = subitem; data->hwnd = hwnd2List; diff --git a/plugins/DbEditorPP/src/watchedvars.cpp b/plugins/DbEditorPP/src/watchedvars.cpp index edcf5f4a30..44c2f801a4 100644 --- a/plugins/DbEditorPP/src/watchedvars.cpp +++ b/plugins/DbEditorPP/src/watchedvars.cpp @@ -299,7 +299,7 @@ void popupWatchedVar(MCONTACT hContact, const char* module, const char* setting) else mir_snprintf(lpzContactName, SIZEOF(lpzContactName), nick_unknown); } - else strcpy(lpzContactName, Translate("Settings")); + else mir_strcpy(lpzContactName, Translate("Settings")); // 2nd line DBVARIANT dbv; -- cgit v1.2.3