Changeset d30e067 in mainline for uspace/lib/trackmod/xm.c


Ignore:
Timestamp:
2025-03-02T20:02:33Z (5 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
8cdf360
Parents:
7debda3 (diff), 4285f384 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge 'upstream/master' into helenraid-para

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/trackmod/xm.c

    r7debda3 rd30e067  
    6666        }
    6767
    68         module->ord_list = calloc(sizeof(size_t), module->ord_list_len);
     68        module->ord_list = calloc(module->ord_list_len, sizeof(size_t));
    6969        if (module->ord_list == NULL) {
    7070                printf("Out of memory.\n");
     
    176176        int ret;
    177177
    178         module->pattern = calloc(sizeof(trackmod_pattern_t), module->patterns);
     178        module->pattern = calloc(module->patterns, sizeof(trackmod_pattern_t));
    179179        if (module->pattern == NULL) {
    180180                rc = ENOMEM;
     
    208208                module->pattern[i].rows = rows;
    209209                module->pattern[i].channels = module->channels;
    210                 module->pattern[i].data = calloc(sizeof(trackmod_cell_t),
    211                     rows * module->channels);
     210                module->pattern[i].data = calloc(rows * module->channels,
     211                    sizeof(trackmod_cell_t));
    212212
    213213                if (module->pattern[i].data == NULL) {
Note: See TracChangeset for help on using the changeset viewer.