Browse Source

Fix infinite loop in putgrent (forgotten increment).

Manuel Novoa III 21 years ago
parent
commit
386eee7b49
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libc/pwd_grp/pwd_grp.c

+ 1 - 0
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);