Fixed autotest, increased MAX_STATUSMESSAGE_LENGTH.

This commit is contained in:
irungentoo 2013-09-06 09:56:56 -04:00
parent 7ecd809a59
commit 64570a1b12
2 changed files with 3 additions and 2 deletions

View File

@ -206,7 +206,8 @@ START_TEST(test_getname)
ck_assert(getname(m, REALLY_BIG_NUMBER, name_buf) == -1);
memcpy(m->friendlist[0].name, &test_name[0], 3);
getname(m, 0, &name_buf[0]);
m->friendlist[0].name_length = 4;
ck_assert(getname(m, 0, &name_buf[0]) == 4);
ck_assert(strcmp((char *)&name_buf[0], "foo") == 0);
}

View File

@ -32,7 +32,7 @@
#include "LAN_discovery.h"
#define MAX_NAME_LENGTH 128
#define MAX_STATUSMESSAGE_LENGTH 128
#define MAX_STATUSMESSAGE_LENGTH 1007
#define FRIEND_ADDRESS_SIZE (crypto_box_PUBLICKEYBYTES + sizeof(uint32_t) + sizeof(uint16_t))