diff options
author | 2016-09-13 16:00:26 +0000 | |
---|---|---|
committer | 2016-09-13 16:00:26 +0000 | |
commit | 82f95fa9f12ce2b558337808f33e4978097491e8 (patch) | |
tree | 33604afd0e39dbf113d0f37cdb670000d3c155dc | |
parent | proxy uid/gid was split up for seperate purposes; it can go away now. (diff) | |
download | wireguard-openbsd-82f95fa9f12ce2b558337808f33e4978097491e8.tar.xz wireguard-openbsd-82f95fa9f12ce2b558337808f33e4978097491e8.zip |
use reallocarray()
-rw-r--r-- | usr.sbin/acme-client/chngproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/acme-client/chngproc.c b/usr.sbin/acme-client/chngproc.c index 66a74e3b267..055e1622f40 100644 --- a/usr.sbin/acme-client/chngproc.c +++ b/usr.sbin/acme-client/chngproc.c @@ -1,4 +1,4 @@ -/* $Id: chngproc.c,v 1.4 2016/09/01 00:35:21 florian Exp $ */ +/* $Id: chngproc.c,v 1.5 2016/09/13 16:00:26 deraadt Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -90,7 +90,7 @@ chngproc(int netsock, const char *root, int remote) /* Vector appending... */ - pp = realloc(fs, (fsz + 1) * sizeof(char *)); + pp = reallocarray(fs, (fsz + 1), sizeof(char *)); if (NULL == pp) { warn("realloc"); goto out; |