fix decode
[enigma2.git] / lib / service / service.cpp
index 7721fed7adaaeffb4282d40699918db8064aa412..f34237d2307e623a2212161a714b81199bd54f7c 100644 (file)
@@ -41,8 +41,8 @@ static std::string decode(const std::string s)
                        i += 2;
                        if (i >= len)
                                break;
                        i += 2;
                        if (i >= len)
                                break;
-                       char s[3] = {s[i - 1], s[i], 0};
-                       unsigned char r = strtoul(s, 0, 0x10);
+                       char t[3] = {s[i - 1], s[i], 0};
+                       unsigned char r = strtoul(t, 0, 0x10);
                        if (r)
                                res += r;
                }
                        if (r)
                                res += r;
                }