summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2015-08-19 17:00:17 +0100
committerColin Watson <cjwatson@debian.org>2015-08-19 17:00:17 +0100
commit544df7a04ae5b5c1fc30be7c445ad685d7a02dc9 (patch)
tree33d2a87dd50fe5894ac6ec4579c83401b7ab00a4 /misc.c
parentbaccdb349b31c47cd76fb63211f754ed33a9707e (diff)
parent7de4b03a6e4071d454b72927ffaf52949fa34545 (diff)
Import openssh_6.9p1.orig.tar.gz
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc.c b/misc.c
index 38af3dfe3..ddd2b2db4 100644
--- a/misc.c
+++ b/misc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: misc.c,v 1.96 2015/01/16 06:40:12 deraadt Exp $ */ 1/* $OpenBSD: misc.c,v 1.97 2015/04/24 01:36:00 deraadt Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * Copyright (c) 2005,2006 Damien Miller. All rights reserved. 4 * Copyright (c) 2005,2006 Damien Miller. All rights reserved.
@@ -472,7 +472,7 @@ addargs(arglist *args, char *fmt, ...)
472 } else if (args->num+2 >= nalloc) 472 } else if (args->num+2 >= nalloc)
473 nalloc *= 2; 473 nalloc *= 2;
474 474
475 args->list = xrealloc(args->list, nalloc, sizeof(char *)); 475 args->list = xreallocarray(args->list, nalloc, sizeof(char *));
476 args->nalloc = nalloc; 476 args->nalloc = nalloc;
477 args->list[args->num++] = cp; 477 args->list[args->num++] = cp;
478 args->list[args->num] = NULL; 478 args->list[args->num] = NULL;