static char str....

else it'll disappear on return.