From 21637e98cb433ca2bea8a81966ec452a07673e8f Mon Sep 17 00:00:00 2001 From: Ronny Strutz Date: Thu, 10 Nov 2005 15:37:20 +0000 Subject: [PATCH] fix cast --- lib/dvb_ci/dvbci_appmgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dvb_ci/dvbci_appmgr.cpp b/lib/dvb_ci/dvbci_appmgr.cpp index 6f6c95d3..5aad5b6e 100644 --- a/lib/dvb_ci/dvbci_appmgr.cpp +++ b/lib/dvb_ci/dvbci_appmgr.cpp @@ -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]); -- 2.11.0