summaryrefslogtreecommitdiffstats
path: root/ssh-keygen.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-11-20 17:02:56 +1100
committerDamien Miller <djm@mindrot.org>1999-11-20 17:02:56 +1100
commitf58db38f8d396ee5ea42975d9409a644e01cede8 (patch)
tree37595c5a2ab8e177eb079f8316b9dc1fdbc85690 /ssh-keygen.c
parentc6398efcbaa2c8fea00420940fcf99b183ff24e9 (diff)
Fix segfault
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index deb08dd9..21b61b44 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -14,7 +14,7 @@ Identity and host key generation and maintenance.
*/
#include "includes.h"
-RCSID("$Id: ssh-keygen.c,v 1.5 1999/11/17 06:29:08 damien Exp $");
+RCSID("$Id: ssh-keygen.c,v 1.6 1999/11/20 06:02:56 damien Exp $");
#include "rsa.h"
#include "ssh.h"
@@ -570,6 +570,7 @@ main(int ac, char **av)
/* Save the public key in text format in a file with the same name but
.pub appended. */
+ file = xrealloc(file, strlen(file) + 5);
strcat(file, ".pub");
f = fopen(file, "w");
if (!f)