November 17, 2009
Guess what I just wasted an afternoon on?
copy = new char[strlen(orig+1)]; strcpy(copy, orig);
Which should have been.
copy = new char[strlen(orig)+1]; strcpy(copy, orig);
I think I need to bump up my emacs font size... or stop coding in C++.