diff --git a/cv10/program.c b/cv10/program.c index 5cb434f..ae7708c 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -47,7 +47,7 @@ int main() { } } - qsort(names, num_accepted, sizeof(char*) * NAME_SIZE, compare_names); + qsort(names, num_accepted, sizeof(names[0]), compare_names); if (num_accepted == 0) { printf("Ziadne prihlasky");