OSSP CVS Repository

ossp - Check-in [1981]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 1981
Date: 2002-Mar-08 23:54:28 (local)
2002-Mar-08 22:54:28 (UTC)
User:rse
Branch:
Comment: upgrade to fixed ts.c
Tickets:
Inspections:
Files:
ossp-pkg/ex/ts.c      1.1 -> 1.2     7 inserted, 2 deleted

ossp-pkg/ex/ts.c 1.1 -> 1.2

--- ts.c 2002/01/26 20:12:19     1.1
+++ ts.c 2002/03/08 22:54:28     1.2
@@ -33,6 +33,11 @@
 #include <string.h>
 #include <stdarg.h>
 
+#include "config.h"
+#if defined(HAVE_DMALLOC_H) && defined(WITH_DMALLOC)
+#include "dmalloc.h"
+#endif
+
 #include "ts.h"
 
 /* embedded ring data structure library */
@@ -286,7 +291,7 @@
     /* iterate through all test cases */
     RING_FOREACH(tst, &ts->tests, ts_test_t, next) {
         cp = ts_suite_masprintf(" Test: %s ........................................"
-                                    "........................................", tst->title);
+                                "........................................", tst->title);
         cp[60] = '\0';
         fprintf(stdout, "%s", cp);
         free(cp);
@@ -379,7 +384,7 @@
         free(tst->title);
         free(tst);
     }
-    free(tst->title);
+    free(ts->title);
     free(ts);
     return;
 }

CVSTrac 2.0.1