avoid buffer overflow on name_prompt

Had a buffer overflow with the previous size.