diff options
author | 2015-04-24 01:36:00 +0000 | |
---|---|---|
committer | 2015-04-24 01:36:00 +0000 | |
commit | e3b4f072510741cebbf90dcbdca1b00464b0e33c (patch) | |
tree | a66dbb091600eb0a92695b64d0e53d6e21c72901 /usr.bin/ssh/ssh-keygen.c | |
parent | Replace atoi() usage with strtonum(). OK deraadt@ (diff) | |
download | wireguard-openbsd-e3b4f072510741cebbf90dcbdca1b00464b0e33c.tar.xz wireguard-openbsd-e3b4f072510741cebbf90dcbdca1b00464b0e33c.zip |
rename xrealloc() to xreallocarray() since it follows that form.
ok djm
Diffstat (limited to 'usr.bin/ssh/ssh-keygen.c')
-rw-r--r-- | usr.bin/ssh/ssh-keygen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c index 5548e609fc3..a45e501ffcf 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.269 2015/04/17 13:19:22 djm Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.270 2015/04/24 01:36:01 deraadt Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1572,7 +1572,7 @@ do_ca_sign(struct passwd *pw, int argc, char **argv) otmp = tmp = xstrdup(cert_principals); plist = NULL; for (; (cp = strsep(&tmp, ",")) != NULL; n++) { - plist = xrealloc(plist, n + 1, sizeof(*plist)); + plist = xreallocarray(plist, n + 1, sizeof(*plist)); if (*(plist[n] = xstrdup(cp)) == '\0') fatal("Empty principal name"); } |