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