Changeset 56210a7 in mainline for uspace/lib/trackmod/xm.c
- Timestamp:
- 2025-01-29T13:06:25Z (10 days ago)
- Branches:
- master
- Children:
- a796812c
- Parents:
- 1fa6292
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2025-01-29 13:04:40)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2025-01-29 13:06:25)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/trackmod/xm.c
r1fa6292 r56210a7 66 66 } 67 67 68 module->ord_list = calloc( sizeof(size_t), module->ord_list_len);68 module->ord_list = calloc(module->ord_list_len, sizeof(size_t)); 69 69 if (module->ord_list == NULL) { 70 70 printf("Out of memory.\n"); … … 176 176 int ret; 177 177 178 module->pattern = calloc( sizeof(trackmod_pattern_t), module->patterns);178 module->pattern = calloc(module->patterns, sizeof(trackmod_pattern_t)); 179 179 if (module->pattern == NULL) { 180 180 rc = ENOMEM; … … 208 208 module->pattern[i].rows = rows; 209 209 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)); 212 212 213 213 if (module->pattern[i].data == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.