segfault on copying struct : I have a strcut as following:

    struct team_t team =
    {
    	"some string1",
    	"some string2",
    	"some string3",
    	"some string4"
    	
    };

Then in another file I create the following function that copies this struct into a new strcut:

    void *ucase( struct team_t *team)
    {
    struct team_t *ucase_team = malloc( sizeof *ucase_team);
    
    
    memcpy ((char*)ucase_team, (char *)team, sizeof (ucase_team));
    
    
    
    	return NULL;
    }

However, when I want to call `ucase(team)`, I'm getting segfault. I need to use `void *` because this will later be used for shell signals. What am I missing?