Fixup: tvb_* -> tvb_captured
[metze/wireshark/wip.git] / epan / dissectors / packet-canopen.c
index e560efb35939127b9789e8b4798d05513fe1a2e6..66e881a3662dd95b8c37477fb54c119f19264f4f 100644 (file)
@@ -335,7 +335,7 @@ dissect_canopen(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
         }
     }
 
-    return tvb_length(tvb);
+    return tvb_captured_length(tvb);
 }