summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>1999-11-20 10:02:54 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>1999-11-20 10:02:54 +0000
commit178285000d905ce59cdd7cfb810b3c4c433c63b1 (patch)
treeb88ad7ebfa98258193239ef3321525cc0f6db653 /usr.bin/ssh
parenta447a5d03756a20a8642d2ad8d5c5a621750434b (diff)
overflow, djm@mindrot.org
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/ssh-keygen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index 2d4c4a71111..cc879188aec 100644
--- a/usr.bin/ssh/ssh-keygen.c
+++ b/usr.bin/ssh/ssh-keygen.c
@@ -14,7 +14,7 @@ Identity and host key generation and maintenance.
*/
#include "includes.h"
-RCSID("$Id: ssh-keygen.c,v 1.8 1999/11/16 22:49:28 markus Exp $");
+RCSID("$Id: ssh-keygen.c,v 1.9 1999/11/20 10:02:53 markus Exp $");
#include "rsa.h"
#include "ssh.h"
@@ -322,6 +322,7 @@ do_change_comment(struct passwd *pw)
/* 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)