mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-13 09:07:33 -05:00
Oops, Ben is quite right about the rather appalling design of
filename_from_str. Here's a better fix, with some const repercussions too. [originally from svn r2768]
This commit is contained in:
2
import.c
2
import.c
@ -66,7 +66,7 @@ int import_encrypted(const Filename *filename, int type, char **comment)
|
||||
{
|
||||
if (type == SSH_KEYTYPE_OPENSSH) {
|
||||
/* OpenSSH doesn't do key comments */
|
||||
*comment = dupstr(filename_to_str(*filename));
|
||||
*comment = dupstr(filename_to_str(filename));
|
||||
return openssh_encrypted(filename);
|
||||
}
|
||||
if (type == SSH_KEYTYPE_SSHCOM) {
|
||||
|
Reference in New Issue
Block a user