This commit is contained in:
Weber 2024-03-22 00:12:25 +00:00
parent f18e9b48c3
commit fb7e53f429

View File

@ -45,7 +45,7 @@ int main() {
students_capacity = (students_capacity + 1) * 2; students_capacity = (students_capacity + 1) * 2;
student_t *new_students = realloc(students, students_capacity * sizeof(student_t)); student_t *new_students = realloc(students, students_capacity * sizeof(student_t));
if (new_students == NULL) { if (new_students == NULL) {
fprintf(stderr, "Chyba"); fprintf(stderr, "Error: Memory reallocation failed\n");
return 1; return 1;
} }
students = new_students; students = new_students;