memcpy copies byte wise, var is 4 bytes.
You have to multiply the memcpy size by 4 => sizeof(var) to copy the whole array.

Last edited by Ch40zzC0d3r; 05/23/17 14:13.