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:
parent
2adc6979b7
commit
c0cb1d3bfb
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user