hyperlogic.org
A witty saying proves nothing. -Voltaire

Best Bug Ever

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++.