diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2003-12-04 22:57:32 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2003-12-04 22:57:32 +0000 |
commit | 386eee7b494be91e20fdd760bc01b20534e5fa7b (patch) | |
tree | 07a086459f6292ee2d7aba99b1bbb154b6346896 | |
parent | bbe7a35e0037e21913c655913f11a37668d472bf (diff) |
Fix infinite loop in putgrent (forgotten increment).
-rw-r--r-- | libc/pwd_grp/pwd_grp.c | 1 |
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); |