]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/blobdiff - winstore.c
Add configurable option to disable application keypad/cursor keys totally
[PuTTY_svn.git] / winstore.c
index 3aef22fa314553c8ba563b7a242ef2326eb37706..cd5fc34349976e8998d8c4270da016e01ff3f700 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <windows.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include "putty.h"
 #include "storage.h"
 
@@ -221,8 +222,6 @@ int verify_host_key(char *hostname, int port, char *keytype, char *key) {
      */
     otherstr = smalloc(len);
     regname = smalloc(3*(strlen(hostname)+strlen(keytype))+15);
-    if (!otherstr || !regname)
-       fatalbox("Out of memory");
 
     hostkey_regname(regname, hostname, port, keytype);
 
@@ -315,8 +314,6 @@ void store_host_key(char *hostname, int port, char *keytype, char *key) {
     HKEY rkey;
 
     regname = smalloc(3*(strlen(hostname)+strlen(keytype))+15);
-    if (!regname)
-       fatalbox("Out of memory");
 
     hostkey_regname(regname, hostname, port, keytype);