]> git.seodisparate.com - UDPConnection/commitdiff
Minor fix to test of internal atostr function
authorStephen Seo <seo.disparate@gmail.com>
Fri, 1 Feb 2019 10:32:31 +0000 (19:32 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Fri, 1 Feb 2019 10:32:31 +0000 (19:32 +0900)
Also check ending of null terminated string of returned buffer.

src/test/UDPC_UnitTest.c

index b891d17a4caf7a13bbc20e244305d328d1eaefc7..a4e09008f6bb518a699133183f6c4c10ab022f97 100644 (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);
 }