Bug fix: prev_name buffer possibly too small; allocated in key_file_init.