However, I also got a crash (Segmentation fault) on level set "BDCFF":
Code: Select all
Program received signal SIGSEGV, Segmentation fault.
strtok () at ../sysdeps/x86_64/strtok.S:190
190 ../sysdeps/x86_64/strtok.S: No such file or directory.
#0 strtok () at ../sysdeps/x86_64/strtok.S:190
#1 0x00000000004c3217 in rtryDbl (s=0x5ca285 "1", del=0x5c9de4 " \t", nochk=0, err=0) at filesBDCFF.c:211
#2 0x00000000004c706a in Load_BDCFFlevel (level=0x47f80c0, level_file_info=0x47f80c0) at filesBDCFF.c:1206
#3 0x00000000004c3031 in LoadLevelFromFileInfo_BD (level=0x47f80c0, level_file_info=0x47f80c0) at filesBD.c:1200
#4 0x00000000004b05ab in LoadLevelFromFileInfo (level=0x47f80c0, level_file_info=0x47f80c0, level_info_only=0) at files.c:6507
#5 0x00000000004b164e in LoadLevel_LoadAndInit (network_level=0x0) at files.c:7019
#6 0x00000000004b16e7 in LoadLevel (nr=1) at files.c:7043
#7 0x000000000042ffb3 in DrawMainMenu () at screens.c:1831
#8 0x00000000004116af in OpenAll () at init.c:6645
#9 0x0000000000404e0f in main (argc=1, argv=0x7fffffffd348) at main.c:7934
Code: Select all
static double rtryDbl(char *s, char *del, int nochk, int err)
{
char *tok = strtok(s, del);
if ((tok!=NULL) && (nochk || !strEmpty(tok))) {
return atof(tok);
} else {
if (err) {
error = err;
}
return 0.0;
}
}