15 Apr
2009
15 Apr
'09
11:54 p.m.
Hmm, wow, ok I think you were right, but it was really subtle. :(
//String is read in from file, delimited. char string[32]; File.getline(string, 32, '"');
int Length = strlen(string); // <-- Does not include Null character! char* Name = new char[Length]; // <-- One char too small strcpy(Name, string); // <-- Corrupted 1 byte after Name's end.
Well... it's just an additional proof to what was said in the parallel thread :) http://article.gmane.org/gmane.comp.lib.boost.user/46803