- qsort(ar, cmdcodesize, sizeof(*ar), (int (*)(const void*, const void*))compare_code);
- for(i = 0; i < cmdcodesize; i++) {
+ qsort(ar, cmdtypecodesize, sizeof(*ar), (int (*)(const void*, const void*))compare_code);
+ for(i = 0; i < cmdtypecodesize; i++) {