diff -Nru sc-20111122/systems/cardclient/camd.c sc-20111122-ecm-size-camd/systems/cardclient/camd.c --- sc-20111122/systems/cardclient/camd.c 2011-12-10 20:36:03.000000000 +0000 +++ sc-20111122-ecm-size-camd/systems/cardclient/camd.c 2011-12-10 20:36:56.000000000 +0000 @@ -678,10 +678,10 @@ { bool res=false; const int length=SCT_LEN(data); - if(length<=255) { + if(length<=511) { Lock(); while(exclusive) sleepCond.Wait(*this); - unsigned char buff[300]; + unsigned char buff[512]; memset(buff,0xff,sizeof(buff)); struct CmdBlock *cb=(struct CmdBlock *)buff; const unsigned short pid=pinid++;