fix cast
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Thu, 10 Nov 2005 15:37:20 +0000 (15:37 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Thu, 10 Nov 2005 15:37:20 +0000 (15:37 +0000)
lib/dvb_ci/dvbci_appmgr.cpp

index 6f6c95d3922c3c66fd2bc895245a5f484e3adb10..5aad5b6ea14da0181ddd6730c42cc62acdf4fa0c 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]);