diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/Messenger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Messenger.c b/core/Messenger.c index d8bf3413..9fa643bb 100644 --- a/core/Messenger.c +++ b/core/Messenger.c | |||
@@ -352,7 +352,7 @@ static int send_userstatus(int friendnumber, uint8_t * status, uint16_t length) | |||
352 | memcpy(thepacket + 2, status, length); | 352 | memcpy(thepacket + 2, status, length); |
353 | thepacket[0] = PACKET_ID_USERSTATUS; | 353 | thepacket[0] = PACKET_ID_USERSTATUS; |
354 | thepacket[1] = self_userstatus_kind; | 354 | thepacket[1] = self_userstatus_kind; |
355 | int written = write_cryptpacket(friendlist[friendnumber].crypt_connection_id, thepacket, length + 1); | 355 | int written = write_cryptpacket(friendlist[friendnumber].crypt_connection_id, thepacket, length + 2); |
356 | free(thepacket); | 356 | free(thepacket); |
357 | return written; | 357 | return written; |
358 | } | 358 | } |