瀏覽代碼

fix again

Julius Pfrommer 10 年之前
父節點
當前提交
68e02ac8e3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/ua_types_encoding_binary.c

+ 1 - 1
src/ua_types_encoding_binary.c

@@ -1105,7 +1105,7 @@ UA_StatusCode UA_decodeBinary(const UA_ByteString *src, size_t *offset, void *ds
             UA_Int32 tempNoElements;
             UA_Int32_decodeBinary(src, offset, &tempNoElements);
             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)
                 *noElements = tempNoElements;
             ptr += sizeof(void*);