@@ -196,7 +196,7 @@ M2MTLVDeserializer::Error M2MTLVDeserializer::deserialize_resources(const uint8_
196196 } else if (TYPE_MULTIPLE_RESOURCE == til._type ) {
197197 for (; it!=list.end (); it++) {
198198 if ((*it)->supports_multiple_instances ()) {
199- error = deserialize_resource_instances (tlv, tlv_size-offset , offset, (**it), object_instance, operation, update_value);
199+ error = deserialize_resource_instances (tlv, tlv_size, offset, (**it), object_instance, operation, update_value);
200200 }
201201 }
202202
@@ -268,7 +268,7 @@ M2MTLVDeserializer::Error M2MTLVDeserializer::deserialize_resource_instances(con
268268 offset += til._length ;
269269
270270 if (offset < tlv_size) {
271- error = deserialize_resource_instances (tlv, tlv_size-offset , offset, resource, object_instance, operation, update_value);
271+ error = deserialize_resource_instances (tlv, tlv_size, offset, resource, object_instance, operation, update_value);
272272 }
273273 return error;
274274}
@@ -321,7 +321,7 @@ M2MTLVDeserializer::Error M2MTLVDeserializer::deserialize_resource_instances(con
321321 offset += til._length ;
322322
323323 if (offset < tlv_size) {
324- error = deserialize_resource_instances (tlv, tlv_size-offset , offset, resource, operation, update_value);
324+ error = deserialize_resource_instances (tlv, tlv_size, offset, resource, operation, update_value);
325325 }
326326 return error;
327327}
0 commit comments