Gah...everyone that reads this doesn't understand the issue.
The call to new on temp is allocating more memory than it should. The error was not in the loop or in fread or anything, but before it when memory was allocated. 79 was passed to the array index in the allocation, and it created an array of size 94 instead.
Anyway, the issues been solved with a little memory moving.