more info
Code:
struct broken_msg
{
void break_msg(char* full_msg)
{
char seps[] = "^";
char *token;
token = strtok( full_msg, seps ); <== CRASHES HERE
if(strlen(token) < 150)
{
strcpy(parm0,token);
}
if( stricmp("&" ,token ) )
{
token = strtok( NULL, seps );
if(strlen(token) < 150)
{
strcpy(parm1,token);
}
}
if( stricmp("&" ,token ) )
{
token = strtok( NULL, seps );
if(strlen(token) < 150)
{
strcpy(parm2,token);
}
}
if( stricmp("&" ,token ) )
{
token = strtok( NULL, seps );
if(strlen(token) < 150)
{
strcpy(parm3,token);
}
}
}
char parm0[150];
char parm1[150];
char parm2[150];
char parm3[150];
};