summaryrefslogtreecommitdiffhomepage
path: root/loginutils/addgroup.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-03-26 20:04:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-03-26 20:04:27 +0000
commit8ee649a02e97e9d4e770a8138ba94c0f3ddd8055 (patch)
treecf13ce448542a36595264ad53397a0633ffedcc8 /loginutils/addgroup.c
parentce7eb4443cc90038aabc19a8b7b8f25e4b88892e (diff)
*: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/
Diffstat (limited to 'loginutils/addgroup.c')
-rw-r--r--loginutils/addgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c
index 367c6b9f0..c9495b2c1 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] == ':'