small optimize
[enigma2.git] / lib / driver / rcinput.cpp
index 9662fd2..107b337 100644 (file)
@@ -75,7 +75,7 @@ eRCDeviceInputDev::eRCDeviceInputDev(eRCInputEventDriver *driver)
 {
        int len=id.length();
        int idx=0;
-       while(idx < len)
+       while(idx <= len-8)
        {
                if (!strncasecmp(&id[idx++], "KEYBOARD", 8))
                {