diff -r b8bdbc8f59c7 -r 7d4490026038 persistentstorage/centralrepository/cenrepsrv/srvsubsess.cpp --- a/persistentstorage/centralrepository/cenrepsrv/srvsubsess.cpp Thu Aug 12 11:53:23 2010 +0100 +++ b/persistentstorage/centralrepository/cenrepsrv/srvsubsess.cpp Mon Sep 27 11:59:56 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -852,7 +852,7 @@ CleanupClosePushL(settingsToSend); //reserve memory for everything that needs to be added to the array - settingsToSend.Reserve(numInitial); + settingsToSend.ReserveL(numInitial + 1); // the plus one is for the numSettings value //first append the number of found settings settingsToSend.AppendL(numSettings);