From 4d9d9f4d027936111684bb0d63eb43a6535cddb1 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 6 May 2004 14:49:32 +0000 Subject: (list_entries_users): Use xnmalloc, rather than xmalloc. --- src/users.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/users.c b/src/users.c index 733024af1..e1772d914 100644 --- a/src/users.c +++ b/src/users.c @@ -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] -- cgit v1.2.3-54-g00ecf