Above, you defined t as a char pointer. It points to a string literal. String literals are read-only in C.

Above, the g_strdelimit() function will try to modify the string pointed to by t, but...