|
@@ -1105,7 +1105,7 @@ UA_StatusCode UA_decodeBinary(const UA_ByteString *src, size_t *offset, void *ds
|
|
UA_Int32 tempNoElements;
|
|
UA_Int32 tempNoElements;
|
|
UA_Int32_decodeBinary(src, offset, &tempNoElements);
|
|
UA_Int32_decodeBinary(src, offset, &tempNoElements);
|
|
ptr += sizeof(UA_Int32) + (member->padding & 0x07);
|
|
ptr += sizeof(UA_Int32) + (member->padding & 0x07);
|
|
- retval = UA_Array_decodeBinary(src, offset, *noElements, (void**)ptr, memberType);
|
|
|
|
|
|
+ retval = UA_Array_decodeBinary(src, offset, tempNoElements, (void**)ptr, memberType);
|
|
if(retval == UA_STATUSCODE_GOOD)
|
|
if(retval == UA_STATUSCODE_GOOD)
|
|
*noElements = tempNoElements;
|
|
*noElements = tempNoElements;
|
|
ptr += sizeof(void*);
|
|
ptr += sizeof(void*);
|