? .gdb_history
Index: CuTest.c
===================================================================
RCS file: /home/cvspublic/apr/test/CuTest.c,v
retrieving revision 1.18
diff -u -d -b -w -r1.18 CuTest.c
--- CuTest.c	31 Dec 2002 19:42:57 -0000	1.18
+++ CuTest.c	31 Dec 2002 20:41:59 -0000
@@ -382,10 +382,33 @@
 
 static const char *genspaces(int i)
 {
-    char *str = malloc((i + 1) * sizeof(char));
-    memset(str, ' ', i);
-    str[i] = '\0';
-    return str;
+	static const char *spaces[] = {
+		"",
+		" ",
+		"  ",
+		"   ",
+		"    ",
+		"     ",
+		"      ",
+		"       ",
+		"        ",
+		"         ",
+		"          ",
+		"           ",
+		"            ",
+		"             ",
+		"              ",
+		"               ",
+		"                ",
+		"                 ",
+		"                  ",
+		"                   ",
+		"                    "
+	};
+
+	assert (i <= 20);
+
+	return spaces[i];
 }
 
 void CuSuiteListRunWithSummary(CuSuiteList* testSuite)
