diff --git a/adis.c b/adis.c index 47a5883..11461a9 100755 --- a/adis.c +++ b/adis.c @@ -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);