From 35be3f27b219ffed4f5dc879ec5fd3455e8237e6 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 23 May 2001 21:01:01 +0000 Subject: 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 --- games/rogue/score.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'games') diff --git a/games/rogue/score.c b/games/rogue/score.c index b1c9ccd..1f0794a 100644 --- a/games/rogue/score.c +++ b/games/rogue/score.c @@ -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 { -- cgit v1.1