public void WriteString(byte[] strn) { // Fix for broken tiff files int max = uncompData.Length - dstIndex; if (strn.Length < max) max = strn.Length; System.Array.Copy(strn, 0, uncompData, dstIndex, max); dstIndex += max; }