From f0e82c7488dbc816d8d9704da7ed9272dd1a73d2 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 1 Feb 2019 19:32:31 +0900 Subject: [PATCH] Minor fix to test of internal atostr function Also check ending of null terminated string of returned buffer. --- src/test/UDPC_UnitTest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }