summaryrefslogtreecommitdiff
path: root/libc/pwd_grp/pwd_grp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/pwd_grp/pwd_grp.c')
-rw-r--r--libc/pwd_grp/pwd_grp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/pwd_grp/pwd_grp.c b/libc/pwd_grp/pwd_grp.c
index 74f784231..026034515 100644
--- a/libc/pwd_grp/pwd_grp.c
+++ b/libc/pwd_grp/pwd_grp.c
@@ -803,6 +803,7 @@ int putgrent(const struct group *__restrict p, FILE *__restrict f)
if (fprintf(f, fmt, *m) < 0) {
break;
}
+ ++m;
fmt = format;
} while (1);