diff options
-rw-r--r-- | build.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -51,7 +51,7 @@ main(int argc, char *argv[]) if (!fp) err(1, "fopen"); /* read line by line */ - while (fgets(buf, sizeof(buf), fp)) { + for (j = 0; j < 20 && fgets(buf, sizeof(buf), fp); j++) { buf[strcspn(buf, "\n")] = 0; /* parse line */ |