Files
2013-09-26 17:14:40 +02:00

13 lines
393 B
Plaintext

$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);
}