Changed strcmp for strncmp.