X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/49bad83179144047e7d9e070d63d869dba691736..edce8e45a5bb31bb141734e616de6b4d93202963:/sshpubk.c?ds=sidebyside diff --git a/sshpubk.c b/sshpubk.c index c9db8a1b..377be3a0 100644 --- 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';