# # # patch "cmd_key_cert.cc" # from [56b20814b014259062bac3ec7eb7ce18cecba675] # to [b387e85629c90f024be92027c867cabc74221afb] # ============================================================ --- cmd_key_cert.cc 56b20814b014259062bac3ec7eb7ce18cecba675 +++ cmd_key_cert.cc b387e85629c90f024be92027c867cabc74221afb @@ -150,8 +150,8 @@ CMD(ssh_agent_export, N_("key and cert") cout << decoded_key; else { - char const * external_path = system_path(idx(args, 0)).as_external().c_str(); - ofstream fout(external_path, ofstream::out); + string external_path = system_path(idx(args, 0)).as_external(); + ofstream fout(external_path.c_str(), ofstream::out); fout << decoded_key; } }