>>> temp[ 0 ] = tokenPtr[ 0 ];

This line copies the first character of one string to the first character of the other, but the destination string is not correctly terminated, it contains the character you have copied plus any other rubbish that was there before. You need to put a '\0' character in position temp[1] before calling strcat().

You'll then discover you have another problem!