When a game ends that makes the top 10, the function insert_score in
score.c is called to make the new score file. But the case for KFIRE (killed by fire) incorrectly uses strcpy instead of strcat (all the other cases use strcat). This puts the string in the wrong place and corrupts the score file. PR: 13278 Submitted by: Mark W. Krentel krentel@dreamscape.com
This commit is contained in:
parent
629db60492
commit
12f70a5587
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77067
@ -360,7 +360,7 @@ const object *monster;
|
||||
(void) strcat(buf, "a total winner");
|
||||
break;
|
||||
case KFIRE:
|
||||
(void) strcpy(buf, "killed by fire");
|
||||
(void) strcat(buf, "killed by fire");
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user