From 386eee7b494be91e20fdd760bc01b20534e5fa7b Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Thu, 4 Dec 2003 22:57:32 +0000 Subject: Fix infinite loop in putgrent (forgotten increment). --- libc/pwd_grp/pwd_grp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libc/pwd_grp') 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); -- cgit v1.2.3