diff options
author | 2017-03-20 16:10:10 +0000 | |
---|---|---|
committer | 2017-03-20 16:10:10 +0000 | |
commit | bc0b39af84048e329097e810f310ffec898114fe (patch) | |
tree | d5a41af187095d4fe704d24987c606e22173c1eb | |
parent | Simplify cron(8) job example. (diff) | |
download | wireguard-openbsd-bc0b39af84048e329097e810f310ffec898114fe.tar.xz wireguard-openbsd-bc0b39af84048e329097e810f310ffec898114fe.zip |
recallocarray array that has remote data
-rw-r--r-- | usr.bin/rup/rup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rup/rup.c b/usr.bin/rup/rup.c index 50d8035f1d5..b73a566d960 100644 --- a/usr.bin/rup/rup.c +++ b/usr.bin/rup/rup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rup.c,v 1.30 2015/08/20 22:32:41 deraadt Exp $ */ +/* $OpenBSD: rup.c,v 1.31 2017/03/20 16:10:10 deraadt Exp $ */ /*- * Copyright (c) 1993, John Brezak @@ -131,7 +131,7 @@ remember_rup_data(char *host, struct statstime *st) struct rup_data *newrup; newsize = rup_data_max + 16; - newrup = reallocarray(rup_data, newsize, + newrup = recallocarray(rup_data, rup_data_max, newsize, sizeof(struct rup_data)); if (newrup == NULL) { err(1, NULL); |