=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rusers/rusers.c,v retrieving revision 1.31 retrieving revision 1.32 diff -c -r1.31 -r1.32 *** src/usr.bin/rusers/rusers.c 2013/04/03 04:12:49 1.31 --- src/usr.bin/rusers/rusers.c 2014/10/08 04:08:47 1.32 *************** *** 1,4 **** ! /* $OpenBSD: rusers.c,v 1.31 2013/04/03 04:12:49 deraadt Exp $ */ /* * Copyright (c) 2001, 2003 Todd C. Miller --- 1,4 ---- ! /* $OpenBSD: rusers.c,v 1.32 2014/10/08 04:08:47 doug Exp $ */ /* * Copyright (c) 2001, 2003 Todd C. Miller *************** *** 186,193 **** /* New entry, allocate space if needed and store. */ if (nentries == maxentries) { maxentries += 128; ! hostinfo = realloc(hostinfo, ! sizeof(*hostinfo) * maxentries); if (hostinfo == NULL) err(1, NULL); } --- 186,193 ---- /* New entry, allocate space if needed and store. */ if (nentries == maxentries) { maxentries += 128; ! hostinfo = reallocarray(hostinfo, maxentries, ! sizeof(*hostinfo)); if (hostinfo == NULL) err(1, NULL); }