diff ueda/sverp-bind/enterinst.c @ 20:dda8e455c863

unet-bind works to the point of reporting unbound instances
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sun, 02 Aug 2015 03:23:44 +0000
parents 068ea2458c5d
children ce887659d12e
line wrap: on
line diff
--- a/ueda/sverp-bind/enterinst.c	Sun Aug 02 03:09:15 2015 +0000
+++ b/ueda/sverp-bind/enterinst.c	Sun Aug 02 03:23:44 2015 +0000
@@ -4,6 +4,7 @@
 #include <strings.h>
 #include "struct.h"
 
+extern char *copystr();
 extern struct instance *enter_instance();
 
 process_hier_attr(oc, hier)
@@ -64,6 +65,8 @@
 		}
 		inst = enter_instance(instname);
 		inst->outcomp = oc;
+		if (slot)
+			slot = copystr(slot);
 		inst->slot = slot;
 	}
 	fclose(stream);