Move dprintf and the debug system out into misc.c, to centralise it.
[u/mdw/putty] / pageant.c
index ac0823d..53222fa 100644 (file)
--- a/pageant.c
+++ b/pageant.c
@@ -7,6 +7,8 @@
 #include <aclapi.h>
 #endif
 #include <stdio.h>
+#include <stdlib.h>
+#include <ctype.h>
 #include "ssh.h"
 #include "tree234.h"
 
@@ -252,7 +254,7 @@ static void add_keyfile(char *filename) {
             }
         } else
             *passphrase = '\0';
-        ret = loadrsakey(filename, key, passphrase);
+        ret = loadrsakey(filename, key, NULL, passphrase);
         attempts++;
     } while (ret == -1);
     if (comment) free(comment);