ide: do_identify() string termination fix