From ba857a203ae76a4e9b814adaebeaffa394464731 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 21 Jul 2015 21:49:37 -0400 Subject: [PATCH] Fixed bug. --- toxcore/Messenger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 3fb15022..ed35b696 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -2705,7 +2705,7 @@ static int messenger_load_state_callback(void *outer, const uint8_t *data, uint3 case MESSENGER_STATE_TYPE_PATH_NODE: { Node_format nodes[NUM_SAVED_PATH_NODES]; - if (length != sizeof(nodes)) { + if (length == 0) { return -1; }