The next line of code is adding a null to the next byte:

szConfigIni[iBytesRead] = '\0';

Also, you could wrap the fprintf's in asserts, and leave them in there for debugging in the future.

Speedy