ORBit_copy_value_core() bug?



Hi,

I might just be suffering from coffee deficiency but shouldn't the copy
of sequences and arrays be walking the sequence/array members?


Thanks,
  jules



Index: corba-any.c
===================================================================
--- corba-any.c	(revision 2040)
+++ corba-any.c	(working copy)
@@ -934,13 +934,13 @@
 		pval1 = ((CORBA_Principal *)*val)->_buffer;
 	
 		for (i = 0; i < ((CORBA_Principal *)*newval)->_length; i++)
-			ORBit_copy_value_core (&pval1, &pval2, tc->subtypes [0]);
+			ORBit_copy_value_core (&pval1[i], &pval2[i], tc->subtypes [0]);
 		*val = ((guchar *)*val) + sizeof (CORBA_sequence_CORBA_octet);
 		*newval = ((guchar *)*newval) + sizeof (CORBA_sequence_CORBA_octet);
 		break;
 	case CORBA_tk_array:
 		for (i = 0; i < tc->length; i++)
-			ORBit_copy_value_core (val, newval, tc->subtypes[0]);
+			ORBit_copy_value_core (val[i], newval[i], tc->subtypes[0]);
 		break;
 	case CORBA_tk_fixed:
 		g_error ("CORBA_fixed NYI!");
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]