diff -r 2f88a7d66f50 -r 53b7818cd282 bluetoothengine/btmac/src/ATCodec/atccommand.cpp --- a/bluetoothengine/btmac/src/ATCodec/atccommand.cpp Tue May 11 16:23:08 2010 +0300 +++ b/bluetoothengine/btmac/src/ATCodec/atccommand.cpp Tue May 25 12:53:11 2010 +0300 @@ -125,7 +125,7 @@ if (version == KStreamVersion1) { - iText.CreateL(KMaxATSize); + iText.CreateL(KDefaultCmdBufLength); aStream >> iText; iId = static_cast(aStream.ReadInt32L()); iType = static_cast(aStream.ReadInt32L()); @@ -491,7 +491,7 @@ TInt CATResult::Parse(TATId aId, TATType aType, const RATParamArray* aParams) { TRACE_FUNC - TInt err = iText.Create(KMaxATSize); + TInt err = iText.Create(KDefaultCmdBufLength); if (err != KErrNone) { @@ -541,14 +541,14 @@ { return err; } - if (iText.Length() + (*aParams)[j].Des().Length() > KMaxATSize) + if (iText.Length() + (*aParams)[j].Des().Length() > KDefaultCmdBufLength) { return KErrArgument; } iText.Append((*aParams)[j].Des()); if (j != aParams->Count() - 1) { - if (iText.Length() + comma.Length() > KMaxATSize) + if (iText.Length() + comma.Length() > KDefaultCmdBufLength) { return KErrArgument; } @@ -565,11 +565,11 @@ TInt CATResult::AddCRLF(TDes8& aText) { - if (aText.Length() + KCRLFSize > KMaxATSize) + if (aText.Length() + KCRLFSize > KDefaultCmdBufLength) { return KErrOverflow; } - TBuf8 buf(aText); + TBuf8 buf(aText); aText.Format(KCRLFFormat, &buf); return KErrNone; }