g_FileSavePath = new char[len]; memset(g_FileSavePath, 0 ,sizeof(char)*len); strcpy(g_FileSavePath, SaveFilePath.toStdString().c_str());
char name[64] = {0};
if (sizeof(tempName) < 64)
{
strcpy(name, tempName);
}