diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-08-17 18:50:06 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-08-17 18:51:34 -0700 |
commit | b6b191108000104519f9f6cee70b0ef9bba9dbc6 (patch) | |
tree | 5d154bb417b4bc0351ddb65a3f223d4f881b3e1f /lib/group-member.c | |
parent | 3e042c80ce708b2d27da8ff62f19a5706f6d7fc6 (diff) | |
download | emacs-b6b191108000104519f9f6cee70b0ef9bba9dbc6.tar.gz |
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib/group-member.c')
-rw-r--r-- | lib/group-member.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/group-member.c b/lib/group-member.c index 480a12616a2..cd43f36f4eb 100644 --- a/lib/group-member.c +++ b/lib/group-member.c @@ -21,12 +21,11 @@ /* Specification. */ #include <unistd.h> +#include <stdckdint.h> #include <stdio.h> #include <sys/types.h> #include <stdlib.h> -#include "intprops.h" - /* Most processes have no more than this many groups, and for these processes we can avoid using malloc. */ enum { GROUPBUF_SIZE = 100 }; @@ -54,7 +53,7 @@ get_group_info (struct group_info *gi) { int n_group_slots = getgroups (0, NULL); size_t nbytes; - if (! INT_MULTIPLY_WRAPV (n_group_slots, sizeof *gi->group, &nbytes)) + if (! ckd_mul (&nbytes, n_group_slots, sizeof *gi->group)) { gi->group = malloc (nbytes); if (gi->group) |