From 317cef845287ef1e46ef7aec9864406dcab63918 Mon Sep 17 00:00:00 2001 From: Jason Pochanke Date: Wed, 14 Oct 2026 19:16:45 +0200 Subject: [PATCH] lesson 12 fixed --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 05eca12..87a9eb5 100644 --- a/main.c +++ b/main.c @@ -66,7 +66,7 @@ int main(void) { line in it as : (numbered from 1, no newline inside the text), close it, then print the total as below. */ int total = 0; - char buf[128]; + char buf[LINE_SIZE]; FILE *r = fopen(path, "r"); /* w NOT closed yet */ while (fgets(buf, sizeof buf, r) != NULL) { total ++;