Signed-off-by: Josiah Worcester <josiahw@xxxxxxxxx> --- login-utils/checktty.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/login-utils/checktty.c b/login-utils/checktty.c index 518b701..a8c5247 100644 --- a/login-utils/checktty.c +++ b/login-utils/checktty.c @@ -42,7 +42,7 @@ #define TTY_MAJOR 4 #endif -static gid_t mygroups[NGROUPS]; +static gid_t mygroups[NGROUPS_MAX]; static int num_groups; #define NAMELEN 128 @@ -83,7 +83,7 @@ am_in_group(char *group) static void find_groups(gid_t defgrp, const char *user) { - num_groups = getgroups(NGROUPS, mygroups); + num_groups = getgroups(NGROUPS_MAX, mygroups); } static struct ttyclass * -- 1.7.5.3 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html