これは、私がやろうとしていることと似ています (メモリが割り当てられているかどうかをチェックするコードをスキップしました):
sscanf(line, "%[^\"]\"%[^\"]", tempString, tempString);
int length = strlen("stackoverflow.com") + strlen(tempString);
tempQuestion.link = (char *)malloc((length + 1) * sizeof(char));
tempQuestion.link = "stackoverflow.com";
strcat(tempQuestion.link, tempString);
strcat に到達した後、プログラムがクラッシュします。何が間違っている可能性があるのか わかりません。