Oops, Ben is quite right about the rather appalling design of
[u/mdw/putty] / import.c
index ce304e2..e160966 100644 (file)
--- a/import.c
+++ b/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) {