From: Stephen Seo Date: Fri, 1 Feb 2019 10:32:31 +0000 (+0900) Subject: Minor fix to test of internal atostr function X-Git-Tag: 1.0~266 X-Git-Url: https://git.seodisparate.com/gitweb?a=commitdiff_plain;h=f0e82c7488dbc816d8d9704da7ed9272dd1a73d2;p=UDPConnection Minor fix to test of internal atostr function Also check ending of null terminated string of returned buffer. --- diff --git a/src/test/UDPC_UnitTest.c b/src/test/UDPC_UnitTest.c index b891d17..a4e0900 100644 --- a/src/test/UDPC_UnitTest.c +++ b/src/test/UDPC_UnitTest.c @@ -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); }