Character array gets messed up when I "examine" it in my code

AWOL:
inData is too small, I think.

LiteValArray is also too small.

When you declare an array like inData[3], that means you get indeces 0, 1, and 2 to work with. You, however, have 4 values you are trying to put in it. Similiar problem with LiteValArray.
The char arrays need two more spaces each to accommodate for the last digit and the null terminator.