summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r--toxcore/Messenger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index b745d99b..a702793c 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -1824,7 +1824,7 @@ static int m_handle_lossy_packet(void *object, int friend_num, const uint8_t *pa
1824 } 1824 }
1825 1825
1826 if (m->lossy_packethandler) { 1826 if (m->lossy_packethandler) {
1827 m->lossy_packethandler(m, friend_num, packet, length, userdata); 1827 m->lossy_packethandler(m, friend_num, packet[0], packet, length, userdata);
1828 } 1828 }
1829 1829
1830 return 1; 1830 return 1;
@@ -1900,7 +1900,7 @@ static int handle_custom_lossless_packet(void *object, int friend_num, const uin
1900 } 1900 }
1901 1901
1902 if (m->lossless_packethandler) { 1902 if (m->lossless_packethandler) {
1903 m->lossless_packethandler(m, friend_num, packet, length, userdata); 1903 m->lossless_packethandler(m, friend_num, packet[0], packet, length, userdata);
1904 } 1904 }
1905 1905
1906 return 1; 1906 return 1;