Date: | 2016-08-23 03:42:19 (7 years 7 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | c0cb1d3bfbc70afd3af5ba7998301e38995726e1 |
Message: | eeshow/kicad/pro.c (pro_parse_file): strchr vs. strrchr ... |
Files: |
eeshow/kicad/pro.c (1 diff) |
Change Details
eeshow/kicad/pro.c | ||
---|---|---|
102 | 102 | |
103 | 103 | assert(pro.fn->pro); |
104 | 104 | s = stralloc(pro.fn->pro); |
105 | dot = strchr(s, '.'); | |
105 | dot = strrchr(s, '.'); | |
106 | assert(!strcmp(dot, ".pro")); | |
106 | 107 | strcpy(dot, ".sch"); |
107 | 108 | pro.fn->sch = s; |
108 | 109 | } |
Branches:
master