summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-keygen.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2019-09-24 12:50:46 +0000
committerderaadt <deraadt@openbsd.org>2019-09-24 12:50:46 +0000
commitd766c68f6e2212b00ed51f0d1edb53ca1c442807 (patch)
tree5b8a5c4284be7c1cb2a8a87bd261596dfc0096d5 /usr.bin/ssh/ssh-keygen.c
parentUse consistent names for unused flags/quirks when printing same under (diff)
downloadwireguard-openbsd-d766c68f6e2212b00ed51f0d1edb53ca1c442807.tar.xz
wireguard-openbsd-d766c68f6e2212b00ed51f0d1edb53ca1c442807.zip
identity_file[] should be PATH_MAX, not the arbitrary number 1024
Diffstat (limited to 'usr.bin/ssh/ssh-keygen.c')
-rw-r--r--usr.bin/ssh/ssh-keygen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index 8e2159e7179..48dad87f9be 100644
--- a/usr.bin/ssh/ssh-keygen.c
+++ b/usr.bin/ssh/ssh-keygen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.350 2019/09/16 03:23:02 djm Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.351 2019/09/24 12:50:46 deraadt Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -88,7 +88,7 @@ static int print_bubblebabble = 0;
static int fingerprint_hash = SSH_FP_HASH_DEFAULT;
/* The identity file name, given on the command line or entered by the user. */
-static char identity_file[1024];
+static char identity_file[PATH_MAX];
static int have_identity = 0;
/* This is set to the passphrase if given on the command line. */