comparison pads2gpcb/partinst.c @ 66:68900e8dcda1

pads2gpcb/partinst.c: buglet fixed, swallows GTA02*.asc now
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sun, 31 Jan 2016 22:03:08 +0000
parents 2b71943a311b
children e14cd5433e83
comparison
equal deleted inserted replaced
65:2b71943a311b 66:68900e8dcda1
71 char *typename = input_line_fields[1]; 71 char *typename = input_line_fields[1];
72 char *decalname; 72 char *decalname;
73 73
74 decalname = index(typename, '@'); 74 decalname = index(typename, '@');
75 if (decalname) 75 if (decalname)
76 *decalname++; 76 *decalname++ = '\0';
77 our_part->type = find_parttype_by_name(typename); 77 our_part->type = find_parttype_by_name(typename);
78 if (!our_part->type) { 78 if (!our_part->type) {
79 fprintf(stderr, 79 fprintf(stderr,
80 "%s line %d: part instantiation refers to unknown part type \"%s\"\n", 80 "%s line %d: part instantiation refers to unknown part type \"%s\"\n",
81 input_filename, input_lineno, typename); 81 input_filename, input_lineno, typename);