diff options
Diffstat (limited to 'games/xsoldier/patches/patch-ac')
-rw-r--r-- | games/xsoldier/patches/patch-ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/games/xsoldier/patches/patch-ac b/games/xsoldier/patches/patch-ac new file mode 100644 index 00000000000..d8079b51bd1 --- /dev/null +++ b/games/xsoldier/patches/patch-ac @@ -0,0 +1,12 @@ +$NetBSD: patch-ac,v 1.1 1999/12/23 01:44:03 wiz Exp $ +--- score.c.orig Mon Feb 24 16:25:44 1997 ++++ score.c Wed Dec 22 02:32:19 1999 +@@ -53,7 +53,7 @@ int ReadHiscore(PlayerData *p) + p->Rec[i].score = score; + p->Rec[i].loop = loop; + p->Rec[i].stage = stage; +- strcpy(p->Rec[i].name,name); ++ strncpy(p->Rec[i].name,name,sizeof(p->Rec[i].name)); + } + fclose(fp); + } |