MorganS:
Because one of them is writing off the end of the result[] array and damaging memory that's related to the temperature sensor. Does it work when you apply Pete's suggestion?
Interesting. I'm away from the device at the moment. Will try it when I get back.
So what exactly happens when you try and stuff things that are too big to fit into a char array of X length? You said that it can physically damage memory?