summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--5/7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/5/7.c b/5/7.c
index 9dbe0ac..ab9d8a3 100644
--- a/5/7.c
+++ b/5/7.c
@@ -13,9 +13,9 @@ int main() {
char **lines;
lines = malloc(sizeof(char *) * MAXLINES);
-
for (i = 0; i < MAXLINES - 1; i++)
lines[i] = malloc(sizeof(char) * MAXLEN);
+
count = readlines(lines, MAXLINES);
for (i = 0; i < count; i++)