sizeof(pch) will be 4 or 8 here. You should use the correct amount (probably best to define a constant for the 200000).