Tests: add StrBufStripAllBut and compare it to stripallbut
[citadel] / libcitadel / tests / hashlist_test.c
index d20b5a9..e5a2550 100644 (file)
@@ -253,7 +253,7 @@ static void TestMSetHashlist (void)
                                             ChrPtr(MSetStr), 
                                             MessageNumbers[nTest][InMSet][j]);
                                CU_FAIL(ChrPtr(Assert));
                                             ChrPtr(MSetStr), 
                                             MessageNumbers[nTest][InMSet][j]);
                                CU_FAIL(ChrPtr(Assert));
-                               printf(ChrPtr(Assert));
+                               printf("%s", ChrPtr(Assert));
                        }
                        else
                        {
                        }
                        else
                        {
@@ -273,7 +273,7 @@ static void TestMSetHashlist (void)
                                             ChrPtr(MSetStr), 
                                             MessageNumbers[nTest][NotInMSet][j]);
                                CU_FAIL(ChrPtr(Assert));
                                             ChrPtr(MSetStr), 
                                             MessageNumbers[nTest][NotInMSet][j]);
                                CU_FAIL(ChrPtr(Assert));
-                               printf(ChrPtr(Assert));
+                               printf("%s", ChrPtr(Assert));
                        }
                        else
                        {
                        }
                        else
                        {