diff options
author | slvr <slvr@unsafeio.com> | 2013-08-10 19:20:56 +0100 |
---|---|---|
committer | slvr <slvr@unsafeio.com> | 2013-08-10 19:20:56 +0100 |
commit | da8ef89e9ddc22af4cc639b9d07ec6a9fe2c6a11 (patch) | |
tree | a98c81c554f8b80fd83a9bd017550b8df6850556 /core/Messenger.c | |
parent | 7f27fcaf37144354bca31109f71d2db5af9d4582 (diff) | |
parent | 341de59bb627600c27ef29b113fa71bac120350f (diff) |
Merge remote-tracking branch 'upstream/master' into pr
Diffstat (limited to 'core/Messenger.c')
-rw-r--r-- | core/Messenger.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Messenger.c b/core/Messenger.c index bc18c86a..37ab5e2d 100644 --- a/core/Messenger.c +++ b/core/Messenger.c | |||
@@ -389,7 +389,8 @@ static int send_statusmessage(int friendnumber, uint8_t * status, uint16_t lengt | |||
389 | 389 | ||
390 | static int send_userstatus(int friendnumber, USERSTATUS status) | 390 | static int send_userstatus(int friendnumber, USERSTATUS status) |
391 | { | 391 | { |
392 | return write_cryptpacket_id(friendnumber, PACKET_ID_USERSTATUS, (uint8_t*)&status, sizeof(USERSTATUS)); | 392 | uint8_t stat = status; |
393 | return write_cryptpacket_id(friendnumber, PACKET_ID_USERSTATUS, &stat, sizeof(stat)); | ||
393 | } | 394 | } |
394 | 395 | ||
395 | static int set_friend_statusmessage(int friendnumber, uint8_t * status, uint16_t length) | 396 | static int set_friend_statusmessage(int friendnumber, uint8_t * status, uint16_t length) |