diff -r 55a0a1279a7e -r 206a6eaaeb71 kerneltest/e32test/hcr/d_hcrut.cpp --- a/kerneltest/e32test/hcr/d_hcrut.cpp Wed Oct 13 13:34:03 2010 +0100 +++ b/kerneltest/e32test/hcr/d_hcrut.cpp Mon Oct 18 15:31:10 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of the License "Eclipse Public License v1.0" @@ -535,11 +535,13 @@ case RHcrTest::ECtrlSwitchFileRepository: { TInt r; - TAny* args[2]; + TAny* args[2]; // args[1] length includes null terminating char TEST_MEMGET(a1, args, sizeof(args)); - const TText* fileRepName = (TText*) args[0]; - r = gObserver.SwitchRepository(fileRepName, HCR::HCRInternal::ECoreRepos); + TBuf8 fileName; + TEST_MEMGET(args[0], (TAny*)fileName.Ptr(), ((TInt)args[1])); + + r = gObserver.SwitchRepository(fileName.Ptr(), HCR::HCRInternal::ECoreRepos); if (r != KErrNone) { HCR_TRACE_RETURN(r);