mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed autotest, increased MAX_STATUSMESSAGE_LENGTH.
This commit is contained in:
parent
7ecd809a59
commit
64570a1b12
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user