aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.c b/build.c
index 230dea9..bd17187 100644
--- a/build.c
+++ b/build.c
@@ -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 */