diff options
Diffstat (limited to 'mux.c')
-rw-r--r-- | mux.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: mux.c,v 1.50 2015/01/20 23:14:00 deraadt Exp $ */ | 1 | /* $OpenBSD: mux.c,v 1.51 2015/04/24 01:36:00 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> | 3 | * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> |
4 | * | 4 | * |
@@ -350,7 +350,7 @@ process_mux_new_session(u_int rid, Channel *c, Buffer *m, Buffer *r) | |||
350 | free(cp); | 350 | free(cp); |
351 | continue; | 351 | continue; |
352 | } | 352 | } |
353 | cctx->env = xrealloc(cctx->env, env_len + 2, | 353 | cctx->env = xreallocarray(cctx->env, env_len + 2, |
354 | sizeof(*cctx->env)); | 354 | sizeof(*cctx->env)); |
355 | cctx->env[env_len++] = cp; | 355 | cctx->env[env_len++] = cp; |
356 | cctx->env[env_len] = NULL; | 356 | cctx->env[env_len] = NULL; |