summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-22 22:42:19 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-22 22:42:19 -0300
commit75d421d581743791624d5fb7f16263e365f1051f (patch)
tree02407086ea4b71cbe55cb8ab073266f104ddf1bf /kicad
parent0b161f8ef96850904387ebb7322491142d440cce (diff)
downloadeeshow-75d421d581743791624d5fb7f16263e365f1051f.tar.gz
eeshow-75d421d581743791624d5fb7f16263e365f1051f.tar.bz2
eeshow-75d421d581743791624d5fb7f16263e365f1051f.zip
eeshow/kicad/pro.c (pro_parse_file): strchr vs. strrchr ...
Diffstat (limited to 'kicad')
-rw-r--r--kicad/pro.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kicad/pro.c b/kicad/pro.c
index 41082cd..f077fe3 100644
--- a/kicad/pro.c
+++ b/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;
}