From 415b8749831fe7a11e61a17cd0d6c23274da4565 Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 25 Apr 2024 17:39:11 +0200 Subject: [PATCH] Initialization --- cv10/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");