From 4a136ec88cbec4cf80bf3daeb125ddb34dad578f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 26 Jul 2013 20:34:18 +0000 Subject: also temperature formatting git-svn-id: http://svn.miranda-ng.org/main/trunk@5495 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Weather/src/weather_conv.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/Weather/src/weather_conv.cpp b/plugins/Weather/src/weather_conv.cpp index 85e6e703a1..27f289aef7 100644 --- a/plugins/Weather/src/weather_conv.cpp +++ b/plugins/Weather/src/weather_conv.cpp @@ -109,17 +109,17 @@ void GetTemp(TCHAR *tempchar, TCHAR *unit, TCHAR* str) // rounding numToStr((temp-32)/9*5, tstr, SIZEOF(tstr)); if (opt.DoNotAppendUnit) - mir_sntprintf(str, SIZEOF(str), _T("%s"), tstr); + mir_sntprintf(str, MAX_DATA_LEN, _T("%s"), tstr); else - mir_sntprintf(str, SIZEOF(str), _T("%s%sC"), tstr, opt.DegreeSign); + mir_sntprintf(str, MAX_DATA_LEN, _T("%s%sC"), tstr, opt.DegreeSign); break; case 2: numToStr(temp, tstr, SIZEOF(tstr)); if (opt.DoNotAppendUnit) - mir_sntprintf(str, SIZEOF(str), _T("%s"), tstr); + mir_sntprintf(str, MAX_DATA_LEN, _T("%s"), tstr); else - mir_sntprintf(str, SIZEOF(str), _T("%s%sF"), tstr, opt.DegreeSign); + mir_sntprintf(str, MAX_DATA_LEN, _T("%s%sF"), tstr, opt.DegreeSign); break; } } -- cgit v1.2.3