fix cast
[enigma2.git] / lib / dvb_ci / dvbci_appmgr.cpp
index 6f6c95d..5aad5b6 100644 (file)
@@ -30,7 +30,7 @@ int eDVBCIApplicationManagerSession::receivedAPDU(const unsigned char *tag,const
                                dl=len-6;
                        }
                        char str[dl + 1];
-                       memcpy(str, data + 6, dl);
+                       memcpy(str, ((char*)data) + 6, dl);
                        str[dl] = '\0';
                        for (int i = 0; i < dl; ++i)
                                printf("%c", ((unsigned char*)data)[i+6]);