Youre right, but what about this

void script(string s) { static char S[50]; strcpy(S,s); Script = S; }