Skip to content

Commit

Permalink
Fix error message in m_send_generic_message
Browse files Browse the repository at this point in the history
  • Loading branch information
jhert0 committed Aug 4, 2018
1 parent 788fa22 commit cd98ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toxcore/Messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ int m_send_message_generic(Messenger *m, int32_t friendnumber, uint8_t type, con
}

if (length >= MAX_CRYPTO_DATA_SIZE) {
LOGGER_ERROR(m->log, "Message length %d is too large", friendnumber);
LOGGER_ERROR(m->log, "Message length %u is too large", length);
return -2;
}

Expand Down

0 comments on commit cd98ec4

Please sign in to comment.