ACPI_MEMCPY ((void *) data_space, (void *) internal_object->string.pointer, (acpi_size) internal_object->string.length + 1); 
ACPI_MEMCPY ((void *) data_space, (void *) internal_object->string.pointer, (acpi_size) internal_object->string.length + 1); 
acpi_ut_copy_isimple_to_esimple (	union acpi_operand_object       *internal_object,	union acpi_object               *external_object,	u8                              *data_space,	acpi_size                       *buffer_space_used){	acpi_status                     status = AE_OK;	ACPI_FUNCTION_TRACE ("ut_copy_isimple_to_esimple");	*buffer_space_used = 0;	/*	 * Check for NULL object case (could be an uninitialized	 * package element)	 */	if (!internal_object) {		return_ACPI_STATUS (AE_OK);	}	/* Always clear the external object */	ACPI_MEMSET (external_object, 0, sizeof (union acpi_object));	/*	 * In general, the external object will be the same type as	 * the internal object	 */	external_object->type = ACPI_GET_OBJECT_TYPE (internal_object);	/* However, only a limited number of external types are supported */	switch (ACPI_GET_OBJECT_TYPE (internal_object)) {	case ACPI_TYPE_STRING:		external_object->string.pointer = (char *) data_space;		external_object->string.length = internal_object->string.length;		*buffer_space_used = ACPI_ROUND_UP_TO_NATIVE_WORD ((acpi_size) internal_object->string.length + 1);		ACPI_MEMCPY ((void *) data_space, (void *) internal_object->string.pointer,				 (acpi_size) internal_object->string.length + 1);		break;	case ACPI_TYPE_BUFFER:		external_object->buffer.pointer = data_space;		external_object->buffer.length = internal_object->buffer.length;		*buffer_space_used = ACPI_ROUND_UP_TO_NATIVE_WORD (internal_object->string.length);		ACPI_MEMCPY ((void *) data_space, (void *) internal_object->buffer.pointer,				 internal_object->buffer.length);		break;	case ACPI_TYPE_INTEGER:		external_object->integer.value = internal_object->integer.value;		break;	case ACPI_TYPE_LOCAL_REFERENCE:		/*		 * This is an object reference.  Attempt to dereference it.		 */		switch (internal_object->reference.opcode) {		case AML_INT_NAMEPATH_OP:			/* For namepath, return the object handle ("reference") */		default:			/*			 * Use the object type of "Any" to indicate a reference			 * to object containing a handle to an ACPI named object.			 */			external_object->type = ACPI_TYPE_ANY;			external_object->reference.handle = internal_object->reference.node;			break;		}		break;	case ACPI_TYPE_PROCESSOR:		external_object->processor.proc_id    = internal_object->processor.proc_id;		external_object->processor.pblk_address = internal_object->processor.address;		external_object->processor.pblk_length = internal_object->processor.length;		break;	case ACPI_TYPE_POWER:		external_object->power_resource.system_level =				   internal_object->power_resource.system_level;		external_object->power_resource.resource_order =				   internal_object->power_resource.resource_order;		break;	default:		/*		 * There is no corresponding external object type		 */		return_ACPI_STATUS (AE_SUPPORT);	}	return_ACPI_STATUS (status);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/44f6c01242da4e162f28d8e1216a8c7a91174605/utcopy.c/buggy/drivers/acpi/utilities/utcopy.c