The name2 is an array of three bytes somewhere in (stack) memory. There is (most likely) more memory after that array. What values are in those bytes that are after your array? Impossible to know. Undefined.
In your test run there apparently were only values that did not visibly change the output. Consider yourself unlucky. It is better to crash and burn than to believe that everything is ok.