| Probably the problem is in the fact that when the string is exactly 8 | chars long, it is not zero-terminated... But still, it should stop after the first character that is different between the two strings. So it shouldn't really matter whether it is zero-terminated, because strcmp wouldn't even get to the eighth character.