oh I see , when I fixed the warning , I also changed the function call , didn't notice that
will update it
the fix is from
sprintf(mobname, "Mob Name - %s", mob_db(pet_db_ptr->class_)->jname);
to
std::string temp_name = "Mob Name - " + mob_db.find(pet_db_ptr->class_)->jname;
strcpy(mobname, temp_name.c_str());
Thank you for notifying me!