]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sshpubk.c
Continue writing documentation. Looks like a long job :-(
[PuTTY.git] / sshpubk.c
index c9db8a1b6243d22921f9e240b09acbdefd69df9b..377be3a0e7f4b13f092100673a5596f5338b71ba 100644 (file)
--- a/sshpubk.c
+++ b/sshpubk.c
@@ -77,7 +77,7 @@ static int loadrsakey_main(FILE *fp, struct RSAKey *key, struct RSAAux *aux,
     j = GET_32BIT(buf+i);
     i += 4;
     if (len-i < j) goto end;
-    comment = malloc(j+1);
+    comment = smalloc(j+1);
     if (comment) {
         memcpy(comment, buf+i, j);
         comment[j] = '\0';