diff options
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r-- | toxcore/Messenger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 7d93b2da..6264eddd 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -2754,7 +2754,7 @@ static int messenger_load_state_callback(void *outer, const uint8_t *data, uint3 | |||
2754 | break; | 2754 | break; |
2755 | 2755 | ||
2756 | case MESSENGER_STATE_TYPE_NAME: | 2756 | case MESSENGER_STATE_TYPE_NAME: |
2757 | if ((length > 0) && (length < MAX_NAME_LENGTH)) { | 2757 | if ((length > 0) && (length <= MAX_NAME_LENGTH)) { |
2758 | setname(m, data, length); | 2758 | setname(m, data, length); |
2759 | } | 2759 | } |
2760 | 2760 | ||