Not making a lot of sense ...

Here's the bit of code:

int iFileSize = 1000;
TRACE("%dn", iFileSize);
szBuffer = new char[iFileSize];
TRACE("String length: %d, requested %dn", strlen(szBuffer), iFileSize);

And I get, as an output:

1000
String length: 1016, requested 1000

How the heck does that work?

Blog Topics: