summaryrefslogtreecommitdiff
path: root/src/setuidgid.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-10-08 08:35:55 -0600
committerEric Blake <ebb9@byu.net>2009-10-08 20:30:08 -0600
commitc039c9644983bfdcee7a85ef3166a53a878721eb (patch)
tree0782914b1a04bb79cdbbcd307e9a18a60820c866 /src/setuidgid.c
parentaa092ccf6ab48f7e0c154a6c12b40c5a120500be (diff)
downloadcoreutils-c039c9644983bfdcee7a85ef3166a53a878721eb.tar.xz
maint: use X2NREALLOC in more places
* src/chroot.c (set_additional_groups): Use X2NREALLOC rather than x2nrealloc. * src/factor.c (emit_factor): Likewise. * src/setuidgid.c (main): Likewise.
Diffstat (limited to 'src/setuidgid.c')
-rw-r--r--src/setuidgid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/setuidgid.c b/src/setuidgid.c
index 7176b1ae7..34be5155a 100644
--- a/src/setuidgid.c
+++ b/src/setuidgid.c
@@ -110,7 +110,7 @@ main (int argc, char **argv)
error (EXIT_FAILURE, 0, _("invalid group %s"),
quote (gr));
if (n_gids == n_gids_allocated)
- gids = x2nrealloc (gids, &n_gids_allocated, sizeof *gids);
+ gids = X2NREALLOC (gids, &n_gids_allocated);
gids[n_gids++] = tmp_ul;
if (*ptr == '\0')