First I allocate a memory area like this:
// allocate 1024 bytes for the record buffer //
if((map[PartIndex] = malloc(sizeof(**map) * 1024)) == NULL)
{
printf("malloc map[PartIndex] failed\n");
}
Then I copy the pointer (I don't want to touch the original pointer) to the area like this:
myPtr = map[PartIndex];
PartIndex is 0 from the beginning, and the second time I allocate it's 1 but...
myPtr saves bytes to the first memory area every time, I can't understand why.