rem: if (stlheader.header.magic != 'STYL' || stlheader.header.header_size != sizeof(TranslatorStyledTextStyleHeader)) return B_NO_TRANSLATOR;
add: if (stlheader.header.magic != 'STYL' || stlheader.header.header_size != sizeof(TranslatorStyledTextStyleHeader)) return B_NO_TRANSLATOR; }
context: identify_stxt_header(const TranslatorStyledTextStreamHeader &header,	BPositionIO *inSource, translator_info *outInfo, uint32 outType){	char buffer[20];		// Check the TEXT header	TranslatorStyledTextTextHeader txtheader;	if (inSource->Read(buffer, 16) != 16)		return B_NO_TRANSLATOR;			memcpy(&txtheader, buffer, 16);	if (swap_data(B_UINT32_TYPE, &txtheader, 16,		B_SWAP_BENDIAN_TO_HOST) != B_OK)		return B_ERROR;			if (txtheader.header.magic != 'TEXT' ||		txtheader.header.header_size !=			sizeof(TranslatorStyledTextTextHeader) ||		txtheader.charset != B_UNICODE_UTF8)		return B_NO_TRANSLATOR;	// skip the text data	off_t seekresult, pos;	pos = header.header.header_size +		txtheader.header.header_size +		txtheader.header.data_size;	seekresult = inSource->Seek(txtheader.header.data_size,		SEEK_CUR);	if (seekresult < pos)		return B_NO_TRANSLATOR;	// check the STYL header			TranslatorStyledTextStyleHeader stlheader;	if (inSource->Read(buffer, 20) != 20)		return B_NO_TRANSLATOR;		memcpy(&stlheader, buffer, 20);	if (swap_data(B_UINT32_TYPE, &stlheader, 20,		B_SWAP_BENDIAN_TO_HOST) != B_OK)		return B_ERROR;			if (stlheader.header.magic != 'STYL' ||		stlheader.header.header_size !=			sizeof(TranslatorStyledTextStyleHeader))		return B_NO_TRANSLATOR;			// return information about the data in the stream	outInfo->type = B_STYLED_TEXT_FORMAT;	outInfo->group = B_TRANSLATOR_TEXT;	outInfo->quality = STXT_IN_QUALITY;	outInfo->capability = STXT_IN_CAPABILITY;	strcpy(outInfo->name, "Be styled text file");	strcpy(outInfo->MIME, "text/x-vnd.Be-stxt");		return B_OK;}