Fixed an overwrite issue in the TGA decoder.

Fixed a memory overwrite issue in the decoder for RLE-encoded TGA
images.