mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
eeshow/kicad/pro.c (pro_parse_file): strchr vs. strrchr ...
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user