bug fix strncmp