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 ++;