1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-22 18:43:21 +02:00

eeshow/kicad/pro.c (pro_parse_file): strchr vs. strrchr ...

This commit is contained in:
Werner Almesberger 2016-08-22 22:42:19 -03:00
parent 2adc6979b7
commit c0cb1d3bfb

View File

@ -102,7 +102,8 @@ struct file_names *pro_parse_file(struct file *file,
assert(pro.fn->pro);
s = stralloc(pro.fn->pro);
dot = strchr(s, '.');
dot = strrchr(s, '.');
assert(!strcmp(dot, ".pro"));
strcpy(dot, ".sch");
pro.fn->sch = s;
}