Stop using snprintf in write_hex_to_fd (XCC)