$NetBSD: patch-ad,v 1.2 2004/05/23 23:28:29 danw Exp $ --- manage.c.orig Mon Feb 24 11:20:07 1997 +++ manage.c @@ -9,7 +9,6 @@ #include #include -#include #include #include @@ -306,7 +305,7 @@ PlayerData *NewPlayerData(void) if ((pw=getpwuid(getuid())) == NULL) sprintf(name,"%d",getuid()); else - strcpy(name,pw->pw_name); + strncpy(name,pw->pw_name,sizeof(name)); New = (PlayerData *)malloc(sizeof(PlayerData));