# | Line 76 | Line 76 | match_subfeatures( /* check if subfeatures are support | |
---|---|---|
76 | cp++; | |
77 | *cp = '\0'; | |
78 | n = cp - subfeat; | |
79 | < | if (!(cp = strstr(mysublist, subfeat)) || |
80 | < | (cp[-1] != ',') & (cp[-1] != '=') || |
81 | < | (cp[n] != ',') & (cp[n] != '\n')) |
79 | > | for (cp = mysublist; (cp = strstr(cp, subfeat)) != NULL; cp++) |
80 | > | if ((cp[-1] == ',') | (cp[-1] == '=') && |
81 | > | (cp[n] == ',') | (cp[n] == '\n')) |
82 | > | break; /* match */ |
83 | > | if (!cp) |
84 | return(0); /* missing this one! */ | |
85 | } | |
86 | return(1); /* matched them all */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |