Tag Info

New answers tagged

1

The issue seem to be that you don't copy data over, you're overwriting the idata pointer with the address of mIV: idata = mIV; // this changes idata to point to mIV, not copy data Should be something like: for(size_t i=0; i < (sizeof(mIV) / sizeof(mIV[0])); ++i){ idata[i] = mIV[i]; } Or memcpy(idata, mIV, sizeof(mIV)); Or some other copy ...



Top 50 recent answers are included