bug with CCFileUtils::getWriteablePath on android 2.3

when I call CCFileUtils::getWriteablePath, the return string is empty!

I try write some log in CCFileUtils::getWriteablePath()

    if (tmp)
    {
        dir.append(tmp).append("/");

        CCLog("Dir: %s", dir.c_str());

        return dir;
    }

it shows what I want.

it may be because C*+ types are not necessarily binary compatible across different module even different versions of the same compiler, i just use the generated sh to build the project, i don’t really know why.
so i written

<pre>
size_t CCFileUtils::getWriteablePath
{
// the path is: /data/data/* package name
string dir(“/data/data/”);
const char *tmp = getPackageNameJNI();

if (tmp)
{
dir.append(tmp).append(“/”);
//return dir.copy(str, n);
//
}
return 0;
}

it’s solve the problem