summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-05-06 14:49:32 +0000
committerJim Meyering <jim@meyering.net>2004-05-06 14:49:32 +0000
commit4d9d9f4d027936111684bb0d63eb43a6535cddb1 (patch)
tree95eb3ce4b2b93aefdbef560f3d095be1b1b1d420 /src
parent433aacf5c698a538e149eb431c15196f36264490 (diff)
downloadcoreutils-4d9d9f4d027936111684bb0d63eb43a6535cddb1.tar.xz
(list_entries_users): Use xnmalloc, rather than xmalloc.
Diffstat (limited to 'src')
-rw-r--r--src/users.c2
1 files changed, 1 insertions, 1 deletions
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]