according to DDD I'm getting a seg fault from strcpy but I can't quite figure out what I'm doing wrong (still quite new to C). Any help would be greatly appreciated, thanks in advance.
int compare_people(PERSON* first, PERSON* second)
{
char firstName[32];
char secondName[32];
strcpy(firstName, first->name);
strcpy(secondName, second->name);
int returnVal = strcmp(firstName, secondName);
return returnVal;
}