Originally Posted by
CommonTater
Ummm... not to be too picky here, but it's not automatically null terminated at all.
An array of char [8] has 8 elements numbered 0 to 7... element 8 is out of bounds.
If you put 8 characters in it, it is not null terminated... the null will be a 9th element which will be written out of bounds, launching you into the realm of undefined behavior.