From efd438ad7b533ba2adb4f22a1cb358ee449db825 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Jun 2015 22:23:03 +0000 Subject: new mir_sntprintf templates without SIZEOF git-svn-id: http://svn.miranda-ng.org/main/trunk@14004 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Weather/src/weather_update.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Weather') diff --git a/plugins/Weather/src/weather_update.cpp b/plugins/Weather/src/weather_update.cpp index ed9275e2c4..afa00c84a2 100644 --- a/plugins/Weather/src/weather_update.cpp +++ b/plugins/Weather/src/weather_update.cpp @@ -554,7 +554,7 @@ int GetWeatherData(MCONTACT hContact) db_set_ts(NULL, DEFCURRENTWEATHER, _T2A(Item->Item.Name), DataValue); if ( !mir_tstrcmp(Item->Item.Name, _T("Condition"))) { TCHAR buf[128], *cbuf; - mir_sntprintf(buf, SIZEOF(buf), _T("#%s Weather"), DataValue); + mir_sntprintf(buf, _T("#%s Weather"), DataValue); cbuf = TranslateTS(buf); if (cbuf[0] == '#') cbuf = TranslateTS(DataValue); @@ -564,7 +564,7 @@ int GetWeatherData(MCONTACT hContact) } else if ( mir_tstrcmpi(Item->Item.Unit, _T("Cond")) == 0) { TCHAR buf[128], *cbuf; - mir_sntprintf(buf, SIZEOF(buf), _T("#%s Weather"), DataValue); + mir_sntprintf(buf, _T("#%s Weather"), DataValue); cbuf = TranslateTS(buf); if (cbuf[0] == '#') cbuf = TranslateTS(DataValue); -- cgit v1.2.3