Minor fix to test of internal atostr function
Also check ending of null terminated string of returned buffer.
This commit is contained in:
parent
f6dcf53a35
commit
f0e82c7488
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ void TEST_ATOSTR()
|
||||||
ASSERT_EQ_MEM(
|
ASSERT_EQ_MEM(
|
||||||
UDPC_INTERNAL_atostr(ctx, (0xAC << 24) | (0x1E << 16) | (0x1 << 8) | 0xFF),
|
UDPC_INTERNAL_atostr(ctx, (0xAC << 24) | (0x1E << 16) | (0x1 << 8) | 0xFF),
|
||||||
"172.30.1.255",
|
"172.30.1.255",
|
||||||
12);
|
13);
|
||||||
free(ctx);
|
free(ctx);
|
||||||
UNITTEST_REPORT(ATOSTR);
|
UNITTEST_REPORT(ATOSTR);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue