diff options
Diffstat (limited to 'loginutils/addgroup.c')
-rw-r--r-- | loginutils/addgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c index 367c6b9..c9495b2 100644 --- a/loginutils/addgroup.c +++ b/loginutils/addgroup.c @@ -83,7 +83,7 @@ static void add_user_to_group(char **args, if (!group_file) return; - while ((line = xmalloc_getline(group_file))) { + while ((line = xmalloc_fgetline(group_file)) != NULL) { /* Find the group */ if (!strncmp(line, args[1], len) && line[len] == ':' |