summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Weather/src/weather_opt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Weather/src/weather_opt.cpp b/protocols/Weather/src/weather_opt.cpp
index 18a03ffcf6..d7daf2e4bd 100644
--- a/protocols/Weather/src/weather_opt.cpp
+++ b/protocols/Weather/src/weather_opt.cpp
@@ -96,7 +96,7 @@ void CWeatherProto::LoadOptions(void)
opt.eUnit = getWord("eUnit", 2);
ptrW szValue(getWStringA("DegreeSign"));
- wcsncpy_s(opt.DegreeSign, (szValue == NULL) ? L"" : szValue, _TRUNCATE);
+ wcsncpy_s(opt.DegreeSign, !mir_wstrlen(szValue) ? L"\xB0" : szValue, _TRUNCATE);
opt.DoNotAppendUnit = getByte("DoNotAppendUnit", 0);
opt.NoFrac = getByte("NoFractions", 0);