aboutsummaryrefslogtreecommitdiffstats
path: root/main/charybdis/fix-ratbox-errors.patch
blob: a22c562f55074d6cfecb3087e99f9dced4b737cf (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
--- charybdis-3.4.2.orig/libratbox/src/commio.c
+++ charybdis-3.4.2/libratbox/src/commio.c
@@ -2221,7 +2221,7 @@
 	char empty = '0';
 	char *buf;
 
-	memset(&msg, 0, sizeof(&msg));
+	memset(&msg, 0, sizeof(msg));
 	if(datasize == 0)
 	{
 		iov[0].iov_base = ∅
--- charybdis-3.4.2.orig/libratbox/src/epoll.c
+++ charybdis-3.4.2/libratbox/src/epoll.c
@@ -405,7 +405,7 @@
 	struct sigevent ev;
 	struct itimerspec ts;
 
-	memset(&ev, 0, sizeof(&ev));
+	memset(&ev, 0, sizeof(ev));
 	event->comm_ptr = rb_malloc(sizeof(timer_t));
 	id = event->comm_ptr;
 	ev.sigev_notify = SIGEV_SIGNAL;
--- charybdis-3.4.2.orig/libratbox/src/sigio.c
+++ charybdis-3.4.2/libratbox/src/sigio.c
@@ -412,7 +412,7 @@
 	if(can_do_event <= 0)
 		return 0;
 
-	memset(&ev, 0, sizeof(&ev));
+	memset(&ev, 0, sizeof(ev));
 	event->comm_ptr = rb_malloc(sizeof(timer_t));
 	id = event->comm_ptr;
 	ev.sigev_notify = SIGEV_SIGNAL;