Generally try and use strncmp as opposed to strcmp, consistency is probably a win here over the security.