summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-26 20:34:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-26 20:34:18 +0000
commit4a136ec88cbec4cf80bf3daeb125ddb34dad578f (patch)
treedda1bf3498253ae106ff11293f7d4fd97141faf6 /plugins
parent53ee3b7f1d7b8571827e88832ded5ce786ac8cf9 (diff)
also temperature formatting
git-svn-id: http://svn.miranda-ng.org/main/trunk@5495 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Weather/src/weather_conv.cpp8
1 files changed, 4 insertions, 4 deletions
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;
}
}