Corrupt variables using char array

cCommand[i]=sms_text[i];

cCommand hasn't been initialised.

Post your code.
All of it.