const myName = "BlueBug";
char* name = new char[strlen(string) + 1]; //allocate spaces
strcpy_s(newLine, strlen(string)+1, string); //Tada! perfect
//Hey but what if... I do this?
const myNewName = "SuchAVeryLongNameIHave";
strcpy_s(name, strlen(myNewName ) + 1, myNewName );
//
I am copying my new name to, starting from the location in which....
my previous name has started, but my previous name is a lot shorter than myNewName
Shouldn't i be yelled at because my previous name was BlueBug, so I only allocated 8 character lengths... but I am now writing 10+ characters without allocating space