version 1.42 | | version 1.43 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.42 2005/10/15 07:07:31 qal21 Exp $"; | | * "$Id: init.c,v 1.43 2005/10/28 19:08:53 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
attack_mess[mess][level].level = atoi(buf); | | attack_mess[mess][level].level = atoi(buf); |
p = strtok(NULL, "="); | | p = strtok(NULL, "="); |
if (p != NULL) | | if (p != NULL) |
attack_mess[mess][level].buf1 = strdup(p); | | attack_mess[mess][level].buf1 = strdup_local(p); |
else | | else |
attack_mess[mess][level].buf1 = strdup(""); | | attack_mess[mess][level].buf1 = strdup_local(""); |
mode = 2; | | mode = 2; |
continue; | | continue; |
} else if (mode==2) { | | } else if (mode==2) { |
| | |
attack_mess[mess][level].level = atoi(buf); | | attack_mess[mess][level].level = atoi(buf); |
p = strtok(NULL, "="); | | p = strtok(NULL, "="); |
if (p != NULL) | | if (p != NULL) |
attack_mess[mess][level].buf2 = strdup(p); | | attack_mess[mess][level].buf2 = strdup_local(p); |
else | | else |
attack_mess[mess][level].buf2 = strdup(""); | | attack_mess[mess][level].buf2 = strdup_local(""); |
mode = 3; | | mode = 3; |
continue; | | continue; |
} else if (mode==3) { | | } else if (mode==3) { |
| | |
attack_mess[mess][level].level = atoi(buf); | | attack_mess[mess][level].level = atoi(buf); |
p = strtok(NULL, "="); | | p = strtok(NULL, "="); |
if (p != NULL) | | if (p != NULL) |
attack_mess[mess][level].buf3 = strdup(p); | | attack_mess[mess][level].buf3 = strdup_local(p); |
else | | else |
attack_mess[mess][level].buf3 = strdup(""); | | attack_mess[mess][level].buf3 = strdup_local(""); |
mode = 1; | | mode = 1; |
level++; | | level++; |
total++; | | total++; |