r5455 - trunk/eda/fped

werner at docs.openmoko.org werner at docs.openmoko.org
Sun Aug 16 00:06:51 CEST 2009


Author: werner
Date: 2009-08-16 00:06:51 +0200 (Sun, 16 Aug 2009)
New Revision: 5455

Modified:
   trunk/eda/fped/dump.c
Log:
- dump.c didn't complete vector names used in measurements, causing them to be
  lost and producing an invalid fpd file



Modified: trunk/eda/fped/dump.c
===================================================================
--- trunk/eda/fped/dump.c	2009-08-15 20:52:08 UTC (rev 5454)
+++ trunk/eda/fped/dump.c	2009-08-15 22:06:51 UTC (rev 5455)
@@ -355,10 +355,14 @@
 
 static char *print_meas_base(struct vec *base)
 {
+	char *name, *res;
+
+	name = base_name(base, NULL);
 	if (base->frame == root_frame)
-		return stralloc_printf("%s", base->name);
-	else
-		return stralloc_printf("%s.%s", base->frame->name, base->name);
+		return name;
+	res = stralloc_printf("%s.%s", base->frame->name, name);
+	free(name);
+	return res;
 }
 
 




More information about the commitlog mailing list