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/Weather/src/weather_data.cpp | 2 +- plugins/Weather/src/weather_mwin.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/Weather/src') diff --git a/plugins/Weather/src/weather_data.cpp b/plugins/Weather/src/weather_data.cpp index 81175f2ea4..76f0bb70af 100644 --- a/plugins/Weather/src/weather_data.cpp +++ b/plugins/Weather/src/weather_data.cpp @@ -372,7 +372,7 @@ void wSetData(char **Data, const char *Value) { if (Value[0] != 0) { char *newData = (char*)mir_alloc(mir_strlen(Value) + 3); - strcpy(newData, Value); + mir_strcpy(newData, Value); *Data = newData; } else *Data = ""; diff --git a/plugins/Weather/src/weather_mwin.cpp b/plugins/Weather/src/weather_mwin.cpp index d63114cfe0..5e6573461f 100644 --- a/plugins/Weather/src/weather_mwin.cpp +++ b/plugins/Weather/src/weather_mwin.cpp @@ -188,7 +188,7 @@ static LRESULT CALLBACK wndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara rq.rcDestRect = rc; rq.rcClipRect = rc; - strcpy(rq.szObjectID, "Main,ID=WeatherFrame"); + mir_strcpy(rq.szObjectID, "Main,ID=WeatherFrame"); CallService(MS_SKIN_DRAWGLYPH, (WPARAM)&rq, 0); } @@ -342,8 +342,8 @@ void InitMwin(void) ColourIDT colourid = {0}; colourid.cbSize = sizeof(ColourIDT); - strcpy(colourid.dbSettingsGroup, WEATHERPROTONAME); - strcpy(colourid.setting, "ColorMwinFrame"); + mir_strcpy(colourid.dbSettingsGroup, WEATHERPROTONAME); + mir_strcpy(colourid.setting, "ColorMwinFrame"); _tcscpy(colourid.name, LPGENT("Frame Background")); _tcscpy(colourid.group, _T(WEATHERPROTONAME)); colourid.defcolour = GetSysColor(COLOR_3DFACE); @@ -352,10 +352,10 @@ void InitMwin(void) FontIDT fontid = {0}; fontid.cbSize = sizeof(FontIDT); fontid.flags = FIDF_ALLOWREREGISTER | FIDF_DEFAULTVALID; - strcpy(fontid.dbSettingsGroup, WEATHERPROTONAME); + mir_strcpy(fontid.dbSettingsGroup, WEATHERPROTONAME); _tcscpy(fontid.group, _T(WEATHERPROTONAME)); _tcscpy(fontid.name, LPGENT("Frame Font")); - strcpy(fontid.prefix, "fnt0"); + mir_strcpy(fontid.prefix, "fnt0"); HDC hdc = GetDC(NULL); fontid.deffontsettings.size = -13; @@ -369,7 +369,7 @@ void InitMwin(void) fontid.deffontsettings.style = DBFONTF_BOLD; _tcscpy(fontid.name, LPGENT("Frame Title Font")); - strcpy(fontid.prefix, "fnt1"); + mir_strcpy(fontid.prefix, "fnt1"); FontRegisterT(&fontid); for (MCONTACT hContact = db_find_first(WEATHERPROTONAME); hContact; hContact = db_find_next(hContact, WEATHERPROTONAME)) -- cgit v1.2.3