diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-26 20:04:27 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-26 20:04:27 +0000 |
commit | 8ee649a02e97e9d4e770a8138ba94c0f3ddd8055 (patch) | |
tree | cf13ce448542a36595264ad53397a0633ffedcc8 /loginutils/addgroup.c | |
parent | ce7eb4443cc90038aabc19a8b7b8f25e4b88892e (diff) | |
download | busybox-w32-8ee649a02e97e9d4e770a8138ba94c0f3ddd8055.tar.gz busybox-w32-8ee649a02e97e9d4e770a8138ba94c0f3ddd8055.tar.bz2 busybox-w32-8ee649a02e97e9d4e770a8138ba94c0f3ddd8055.zip |
*: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/
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 367c6b9f0..c9495b2c1 100644 --- a/loginutils/addgroup.c +++ b/loginutils/addgroup.c | |||
@@ -83,7 +83,7 @@ static void add_user_to_group(char **args, | |||
83 | 83 | ||
84 | if (!group_file) return; | 84 | if (!group_file) return; |
85 | 85 | ||
86 | while ((line = xmalloc_getline(group_file))) { | 86 | while ((line = xmalloc_fgetline(group_file)) != NULL) { |
87 | /* Find the group */ | 87 | /* Find the group */ |
88 | if (!strncmp(line, args[1], len) | 88 | if (!strncmp(line, args[1], len) |
89 | && line[len] == ':' | 89 | && line[len] == ':' |