summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2006-10-09 23:36:11 +0000
committerdjm <djm@openbsd.org>2006-10-09 23:36:11 +0000
commit074ba38f1d815ee058c931c39ebd48b131b20fe3 (patch)
treee390df454a69c0f3517034c3aef24de8f58485a0
parentKill unused debug flag. (diff)
downloadwireguard-openbsd-074ba38f1d815ee058c931c39ebd48b131b20fe3.tar.xz
wireguard-openbsd-074ba38f1d815ee058c931c39ebd48b131b20fe3.zip
xmalloc -> xcalloc that was missed previously, from portable
-rw-r--r--usr.bin/ssh/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c
index 43218690afe..9604b4a9d3a 100644
--- a/usr.bin/ssh/session.c
+++ b/usr.bin/ssh/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.219 2006/08/29 10:40:19 djm Exp $ */
+/* $OpenBSD: session.c,v 1.220 2006/10/09 23:36:11 djm Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
@@ -763,7 +763,7 @@ do_setup_env(Session *s, const char *shell)
/* Initialize the environment. */
envsize = 100;
- env = xmalloc(envsize * sizeof(char *));
+ env = xcalloc(envsize, sizeof(char *));
env[0] = NULL;
#ifdef GSSAPI