From add6801a2367fe689322bd08e6209156c6e24c6d Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 5 Jul 2017 02:33:44 +0000 Subject: [PATCH] fix calloc of functions what was i thinking? --- adis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);