- fixed potential memory alignement problem

(cherry picked from commit f0184fdd4b)
pull/143/head
Michael Zillgith 8 years ago
parent f1b201bf34
commit 6eddf2fa08

@ -1015,9 +1015,7 @@ MmsValue_cloneToBuffer(const MmsValue* self, uint8_t* destinationAddress)
int i; int i;
for (i = 0; i < self->value.structure.size; i++) { for (i = 0; i < self->value.structure.size; i++) {
newValue->value.structure.components[i] = (MmsValue*) destinationAddress; memcpy(&(newValue->value.structure.components[i]), &(destinationAddress), sizeof (MmsValue*));
//memcpy(&(newValue->value.structure.components[i]), &(destinationAddress), sizeof (MmsValue*));
destinationAddress = MmsValue_cloneToBuffer(self->value.structure.components[i], destinationAddress); destinationAddress = MmsValue_cloneToBuffer(self->value.structure.components[i], destinationAddress);
} }
} }

Loading…
Cancel
Save