summaryrefslogtreecommitdiff
blob: c19b0afb2aae3d4ed4055290221ae3f39237f429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff -ur twclone-source-0.12.orig/msgqueue.c twclone-source-0.12/msgqueue.c
--- twclone-source-0.12.orig/msgqueue.c	2003-10-25 06:11:18.830318400 -0400
+++ twclone-source-0.12/msgqueue.c	2003-10-25 06:11:46.805065592 -0400
@@ -98,7 +98,7 @@
 	return;
 }
 
-void sendmsg (int msgid, char *buffer, long mtype)
+void safesendmsg (int msgid, char *buffer, long mtype)
 {
   void *msg = malloc (sizeof (struct msgbuffer));
 
diff -ur twclone-source-0.12.orig/msgqueue.h twclone-source-0.12/msgqueue.h
--- twclone-source-0.12.orig/msgqueue.h	2003-10-25 06:11:18.830318400 -0400
+++ twclone-source-0.12/msgqueue.h	2003-10-25 06:11:50.502503496 -0400
@@ -122,7 +122,7 @@
 int init_msgqueue ();
 void clean_msgqueues(int msgidin, int msgidout, char *filename);
 long getmsg (int msgid, char *buffer, long mtype);
-void sendmsg (int msgid, char *buffer, long mtype);
+void safesendmsg (int msgid, char *buffer, long mtype);
 void senddata (int msgid, struct msgcommand *data, long mtype);
 long getdata (int msgid, struct msgcommand *data, long mtype);
 
diff -ur twclone-source-0.12.orig/server.c twclone-source-0.12/server.c
--- twclone-source-0.12.orig/server.c	2003-10-25 06:11:18.831318248 -0400
+++ twclone-source-0.12/server.c	2003-10-25 06:11:58.972215904 -0400
@@ -205,7 +205,7 @@
     while (data.command != ct_quit || senderid != threadid)	//Main game loop
     {
         processcommand (buffer, &data);
-        sendmsg (msgidout, buffer, senderid);
+        safesendmsg (msgidout, buffer, senderid);
         senderid = getdata (msgidin, &data, 0);
     }
     saveallports ();