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/RemovePersonalSettings/src/rps.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/RemovePersonalSettings/src/rps.cpp') diff --git a/plugins/RemovePersonalSettings/src/rps.cpp b/plugins/RemovePersonalSettings/src/rps.cpp index 2c42967039..0394d4d522 100644 --- a/plugins/RemovePersonalSettings/src/rps.cpp +++ b/plugins/RemovePersonalSettings/src/rps.cpp @@ -145,17 +145,17 @@ extern "C" int __declspec(dllexport) Load() // Set vars strcat(gMirandaDir, "\\"); - strcpy(gIniFile, gMirandaDir); + mir_strcpy(gIniFile, gMirandaDir); // Store last pos strTmp = &gIniFile[mir_strlen(gIniFile)]; // Lets try fist name - strcpy(strTmp, INI_FILE_NAME); + mir_strcpy(strTmp, INI_FILE_NAME); if (_access(gIniFile, 4) != 0) { // Not found, lets try the other aproach - strcpy(strTmp, "plugins\\" INI_FILE_NAME); + mir_strcpy(strTmp, "plugins\\" INI_FILE_NAME); if (_access(gIniFile, 4) != 0) { // Not found :( @@ -567,7 +567,7 @@ void DeleteFileOrFolder(const char *name) do { if (mir_strcmp(findData.cFileName, ".") && mir_strcmp(findData.cFileName, "..")) { - strcpy(strTmp, findData.cFileName); + mir_strcpy(strTmp, findData.cFileName); DeleteFileOrFolder(tmp); } } @@ -641,7 +641,7 @@ int EnumProc(const char *szName, LPARAM lParam) // Add to the struct if (len > 0 && len < sizeof(dms->buffer) - dms->pos - 2) { - strcpy(&dms->buffer[dms->pos], szName); + mir_strcpy(&dms->buffer[dms->pos], szName); dms->pos += len + 1; } -- cgit v1.2.3