"cmd" changes from 4 to 0 in the above lines. I thought I might be out of SRAM for variable space, but I slashed my resource requirements well under 2k & I'm still getting the same thing. What's going on?
LarryD:
b2[4]=0; may be writing into the cmd location.
Are you sure you made b2[] large enough?
Another possibility: he has declared b2 as a pointer, made it point to the wrong address(cmd) and now using it (b2) as an array.
There's only so many ways to mess this one up. (S)he should dump the addresses of cmd and b2.