summaryrefslogtreecommitdiff
path: root/protocols/Weather/src/weather_svcs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Weather/src/weather_svcs.cpp')
-rw-r--r--protocols/Weather/src/weather_svcs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Weather/src/weather_svcs.cpp b/protocols/Weather/src/weather_svcs.cpp
index e71a5fa0e0..e6987a40c7 100644
--- a/protocols/Weather/src/weather_svcs.cpp
+++ b/protocols/Weather/src/weather_svcs.cpp
@@ -132,11 +132,11 @@ INT_PTR WeatherGetAvatarInfo(WPARAM, LPARAM lParam)
else szSearchPath[0] = 0;
int iStatus = g_plugin.getWord(pai->hContact, "StatusIcon");
- for (i = 0; i < 10; i++)
+ for (i = 0; i < _countof(statusValue); i++)
if (statusValue[i] == iStatus)
break;
- if (i >= 10)
+ if (i >= _countof(statusValue))
return GAIR_NOAVATAR;
pai->format = PA_FORMAT_PNG;