]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
(Matthias) Fixed bug, rcuTrailerLength is already in bytes.
authorkaamodt <kaamodt@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Sep 2008 14:41:53 +0000 (14:41 +0000)
committerkaamodt <kaamodt@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Sep 2008 14:41:53 +0000 (14:41 +0000)
HLT/RCU/AliHLTAltroChannelSelectorComponent.cxx

index 6381dae0b6095ce7040cf6f1b01fa58b978160e6..686746f36d95ec576b992574c4ab6c8d272508eb 100644 (file)
@@ -180,7 +180,7 @@ int AliHLTAltroChannelSelectorComponent::DoEvent(const AliHLTComponentEventData&
     }
 
     int rcuTrailerLength=decoder->GetRCUTrailerSize();
-    if (rcuTrailerLength*sizeof(AliHLTUInt32_t)>pDesc->fSize-cdhSize) {
+    if (rcuTrailerLength>pDesc->fSize-cdhSize) {
       HLTWarning("corrupted data block: RCU trailer length exceeds buffer size");
       iResult=-EFAULT;
     }