linux crash in this code

Hello, can someone look on this and what can probably made crash on linux (only linux windows is ok)

[CODE] std::string GetSaveData()

{

    std::ostringstream saveStream;

    saveStream << "N X ";

    for(int i = 0; i < MAX_BOSS_NUMBER; ++i)

        saveStream << m_auiEncounter[i] << " ";


    saveStream << m_PlayerDeathCount;

    return saveStream.str();

}


void Load(const char * data)

{

    std::istringstream loadStream(data);

    char dataHead1, dataHead2;

    loadStream >> dataHead1 >> dataHead2;

    std::string newdata = loadStream.str();


    uint32 buff;

    if(dataHead1 == 'N' && dataHead2 == 'X')

    {

        for(int i = 0; i < MAX_BOSS_NUMBER; ++i)

        {

            loadStream >> buff;

            m_auiEncounter[i]= buff;

        }

        //std::istringstream loadStream(LoadBossState(data));


        //loadStream >> buff;

        //gothikDoorState = GOState(buff);

        loadStream >> m_PlayerDeathCount;

    }

}[/CODE]

Some kind of crash log would help…

Another bad report.