summaryrefslogtreecommitdiffstats
path: root/games/xsoldier/files/patch-manage.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/xsoldier/files/patch-manage.c')
-rw-r--r--games/xsoldier/files/patch-manage.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/games/xsoldier/files/patch-manage.c b/games/xsoldier/files/patch-manage.c
new file mode 100644
index 0000000..05ec1ea
--- /dev/null
+++ b/games/xsoldier/files/patch-manage.c
@@ -0,0 +1,22 @@
+
+$FreeBSD$
+
+--- manage.c.orig
++++ manage.c
+@@ -17,7 +17,6 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <malloc.h>
+ /*
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
+@@ -393,7 +392,7 @@
+
+ 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;
OpenPOWER on IntegriCloud