Changes in uspace/lib/trackmod/xm.c [3bacee1:56210a7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/trackmod/xm.c
r3bacee1 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.