]> www.vanbest.org Git - sasc-ng.git/commitdiff
fix CAM message rinbuffer setup
authorleslie <unknown>
Thu, 17 Sep 2009 12:12:38 +0000 (20:12 +0800)
committerleslie <unknown>
Thu, 17 Sep 2009 12:12:38 +0000 (20:12 +0800)
cam.c

diff --git a/cam.c b/cam.c
index c73450fc1454305545d6a356c1838b1e4d4d9941..3f82a5e5db05b8cf25b92ef51c3205bc180ceb47 100644 (file)
--- a/cam.c
+++ b/cam.c
@@ -2238,7 +2238,7 @@ public:
 cScCamSlot::cScCamSlot(cScCiAdapter *ca, int CardIndex, int Slot)
 :cCamSlot(ca)
 ,checkTimer(-SLOT_CAID_CHECK-1000)
-,rb(KILOBYTE(4),5+1,false,"SC-CI slot answer")
+,rb(KILOBYTE(4),5+LEN_OFF,false,"SC-CI slot answer")
 {
   ciadapter=ca; cardIndex=CardIndex; slot=Slot;
   version=0; caids[0]=0; doReply=false; lastStatus=msReset;
@@ -2438,7 +2438,7 @@ cScCiAdapter::cScCiAdapter(cDevice *Device, int CardIndex, cCam *Cam)
   memset(version,0,sizeof(version));
   memset(slots,0,sizeof(slots));
   SetDescription("SC-CI adapter on device %d",cardIndex);
-  rb=new cRingBufferLinear(KILOBYTE(8),6+1,false,"SC-CI adapter read");
+  rb=new cRingBufferLinear(KILOBYTE(8),6+LEN_OFF,false,"SC-CI adapter read");
   if(rb) {
     rb->SetTimeouts(0,CAM_READ_TIMEOUT);
     frame.SetRb(rb);