fix calloc of functions

what was i thinking?
This commit is contained in:
Connor Olding 2017-07-05 02:33:44 +00:00
parent eb7ead0b78
commit add6801a23

4
adis.c
View File

@ -1474,8 +1474,8 @@ int main(int argc, char * argv[])
branches = calloc(1, XBOX_HUGE);
mapped_functions = calloc(1, XBOX_HUGE);
#define FUNCTIONS (XBOX_HUGE / sizeof(function))
functions = calloc(1, FUNCTIONS);
function *functions_data = calloc(1, FUNCTIONS);
functions = calloc(FUNCTIONS, sizeof(function));
function *functions_data = calloc(FUNCTIONS, sizeof(function));
for (i = 0; i < FUNCTIONS; i++) {
functions[i] = functions_data;
functions_data += sizeof(function);