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 ();