--- a/javacommons/fileutils/src.s60/filesystemutils.cpp Tue Aug 31 15:09:22 2010 +0300
+++ b/javacommons/fileutils/src.s60/filesystemutils.cpp Wed Sep 01 12:33:18 2010 +0100
@@ -25,7 +25,6 @@
#include "s60filesystemutilities.h"
#include "javasymbianoslayer.h"
-#define BUF_LEN 255
using namespace std;
using namespace java::util;
using namespace java::fileutils;
@@ -95,9 +94,8 @@
OS_EXPORT std::wstring FileUtilities::listRoots()
{
JELOG2(EJavaFile);
- TBuf<BUF_LEN> buf;
- buf.Copy(S60FileSystemUtilities::GetSupportedDrives());
- std::wstring retString((wchar_t*)buf.Ptr());
+ TDesC16 aDes(S60FileSystemUtilities::GetSupportedDrives());
+ std::wstring retString((wchar_t*)aDes.Ptr());
return retString;
}