/* Write/copy data associated with an ASCII or opaque tag value.  */
static int TIFFWriteByteArray(TIFF *, TIFFDirEntry *, char *)
/* Write/copy data associated with an ASCII or opaque tag value.  */
static int TIFFWriteByteArray(TIFF *, TIFFDirEntry *, char *)
{
	if (dir->tdir_count > 4) {
		if (!TIFFWriteData(tif, dir, cp))
			return (0);
	} else
		_TIFFmemcpy(&dir->tdir_offset, cp, dir->tdir_count);
	return (1);
}