summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/mux.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-04-24 01:36:00 +0000
committerderaadt <deraadt@openbsd.org>2015-04-24 01:36:00 +0000
commite3b4f072510741cebbf90dcbdca1b00464b0e33c (patch)
treea66dbb091600eb0a92695b64d0e53d6e21c72901 /usr.bin/ssh/mux.c
parentReplace atoi() usage with strtonum(). OK deraadt@ (diff)
downloadwireguard-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/mux.c')
-rw-r--r--usr.bin/ssh/mux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/mux.c b/usr.bin/ssh/mux.c
index 108270a07d2..73d6597ad2e 100644
--- a/usr.bin/ssh/mux.c
+++ b/usr.bin/ssh/mux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mux.c,v 1.50 2015/01/20 23:14:00 deraadt Exp $ */
+/* $OpenBSD: mux.c,v 1.51 2015/04/24 01:36:00 deraadt Exp $ */
/*
* Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org>
*
@@ -337,7 +337,7 @@ process_mux_new_session(u_int rid, Channel *c, Buffer *m, Buffer *r)
free(cp);
continue;
}
- cctx->env = xrealloc(cctx->env, env_len + 2,
+ cctx->env = xreallocarray(cctx->env, env_len + 2,
sizeof(*cctx->env));
cctx->env[env_len++] = cp;
cctx->env[env_len] = NULL;