$OpenBSD: patch-manage_c,v 1.3 2005/10/21 20:07:05 naddy Exp $ --- manage.c.orig Mon May 6 06:33:21 2002 +++ manage.c Thu Oct 20 07:23:02 2005 @@ -17,7 +17,6 @@ #include #include -#include /* #include #include @@ -393,7 +392,7 @@ PlayerData *NewPlayerData(void) New = (PlayerData *)malloc(sizeof(PlayerData)); - sprintf(New->Rec[0].name,name); + snprintf(New->Rec[0].name, sizeof(New->Rec[0].name), name); New->Rec[0].score = 0; New->Rec[0].stage = 0; New->Rec[0].loop = 0;