Wilson, Andrew T wrote: > It's like the 8-bit char argument to > sprintf is being promoted to a 32-bit int. The 8-bit *signed* char is promoted to a 32-bit *signed* int and then treated as an unsigned int. Try casting the value to an *unsigned* char. -Brad