blob: d8079b51bd19e3d08e3841502939f28ee6af2ce3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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);
}
|