From 7881b9be2bde1059dca8aa3a5151b0ce53a440e0 Mon Sep 17 00:00:00 2001 From: Weber Date: Thu, 21 Mar 2024 21:26:55 +0000 Subject: [PATCH] skuska --- cv5/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv5/program.c b/cv5/program.c index ed6c9fa..59ef9b2 100644 --- a/cv5/program.c +++ b/cv5/program.c @@ -45,7 +45,7 @@ int main() { students_capacity = (students_capacity + 1) * 2; student_t *new_students = realloc(students, students_capacity * sizeof(student_t)); if (new_students == NULL) { - fprintf(stderr, "Error: Memory reallocation failed\n"); + fprintf(stderr, "Chyba"); return 1; } students = new_students; @@ -68,3 +68,4 @@ int main() { return 0; } +