Minor fix to test of internal atostr function

Also check ending of null terminated string of returned buffer.
This commit is contained in:
Stephen Seo 2019-02-01 19:32:31 +09:00
parent f6dcf53a35
commit f0e82c7488

View file

@ -226,7 +226,7 @@ void TEST_ATOSTR()
ASSERT_EQ_MEM(
UDPC_INTERNAL_atostr(ctx, (0xAC << 24) | (0x1E << 16) | (0x1 << 8) | 0xFF),
"172.30.1.255",
12);
13);
free(ctx);
UNITTEST_REPORT(ATOSTR);
}