blob: 2de7598a7cf9ae8f1ffbd96fff9bf81c0653b928 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- 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;
|