1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 08:50:37 +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); assert(pro.fn->pro);
s = stralloc(pro.fn->pro); s = stralloc(pro.fn->pro);
dot = strchr(s, '.'); dot = strrchr(s, '.');
assert(!strcmp(dot, ".pro"));
strcpy(dot, ".sch"); strcpy(dot, ".sch");
pro.fn->sch = s; pro.fn->sch = s;
} }