avoid buffer overflow on name_prompt