mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed possible bug.
This commit is contained in:
parent
1ec95162a0
commit
341de59bb6
|
@ -389,7 +389,8 @@ static int send_statusmessage(int friendnumber, uint8_t * status, uint16_t lengt
|
||||||
|
|
||||||
static int send_userstatus(int friendnumber, USERSTATUS status)
|
static int send_userstatus(int friendnumber, USERSTATUS status)
|
||||||
{
|
{
|
||||||
return write_cryptpacket_id(friendnumber, PACKET_ID_USERSTATUS, (uint8_t*)&status, sizeof(USERSTATUS));
|
uint8_t stat = status;
|
||||||
|
return write_cryptpacket_id(friendnumber, PACKET_ID_USERSTATUS, &stat, sizeof(stat));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int set_friend_statusmessage(int friendnumber, uint8_t * status, uint16_t length)
|
static int set_friend_statusmessage(int friendnumber, uint8_t * status, uint16_t length)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user