1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 18:56:39 +02:00

(list_entries_users): Use xnmalloc, rather than xmalloc.

This commit is contained in:
Jim Meyering
2004-05-06 14:49:32 +00:00
parent 433aacf5c6
commit 4d9d9f4d02

View File

@@ -57,7 +57,7 @@ list_entries_users (int n, const STRUCT_UTMP *this)
int n_entries;
n_entries = 0;
u = xmalloc (n * sizeof (u[0]));
u = xnmalloc (n, sizeof *u);
for (i = 0; i < n; i++)
{
if (UT_USER (this) [0]