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 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]);