a bug fix with call to my_malloc: void * to char *