diff --git a/eeshow/kicad/pro.c b/eeshow/kicad/pro.c index 41082cd..f077fe3 100644 --- a/eeshow/kicad/pro.c +++ b/eeshow/kicad/pro.c @@ -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; }