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-agent.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-agent.c')
-rw-r--r-- | usr.bin/ssh/ssh-agent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c index cf6e18c6d28..11f5c79f378 100644 --- a/usr.bin/ssh/ssh-agent.c +++ b/usr.bin/ssh/ssh-agent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-agent.c,v 1.199 2015/03/04 21:12:59 djm Exp $ */ +/* $OpenBSD: ssh-agent.c,v 1.200 2015/04/24 01:36:01 deraadt Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -914,7 +914,7 @@ new_socket(sock_type type, int fd) } old_alloc = sockets_alloc; new_alloc = sockets_alloc + 10; - sockets = xrealloc(sockets, new_alloc, sizeof(sockets[0])); + sockets = xreallocarray(sockets, new_alloc, sizeof(sockets[0])); for (i = old_alloc; i < new_alloc; i++) sockets[i].type = AUTH_UNUSED; sockets_alloc = new_alloc; |