diff options
author | Jim Meyering <jim@meyering.net> | 2004-05-06 14:49:32 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-05-06 14:49:32 +0000 |
commit | 4d9d9f4d027936111684bb0d63eb43a6535cddb1 (patch) | |
tree | 95eb3ce4b2b93aefdbef560f3d095be1b1b1d420 /src/users.c | |
parent | 433aacf5c698a538e149eb431c15196f36264490 (diff) | |
download | coreutils-4d9d9f4d027936111684bb0d63eb43a6535cddb1.tar.gz |
(list_entries_users): Use xnmalloc, rather than xmalloc.
Diffstat (limited to 'src/users.c')
-rw-r--r-- | src/users.c | 2 |
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] |