summaryrefslogtreecommitdiff
path: root/games/xsoldier/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'games/xsoldier/patches/patch-ad')
-rw-r--r--games/xsoldier/patches/patch-ad12
1 files changed, 12 insertions, 0 deletions
diff --git a/games/xsoldier/patches/patch-ad b/games/xsoldier/patches/patch-ad
new file mode 100644
index 00000000000..3eaa9307f8c
--- /dev/null
+++ b/games/xsoldier/patches/patch-ad
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.1 1999/12/23 01:44:03 wiz Exp $
+--- manage.c.orig Mon Feb 24 17:20:07 1997
++++ manage.c Wed Dec 22 02:32:19 1999
+@@ -306,7 +306,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));
+