len = strlen(substr);
for (; swp->sw; swp++) {
/* null matches all strings */
- if (!*substr || (isprefix(substr, swp->sw) && len >= swp->minchars)) {
+ if (!*substr || (strncmp(swp->sw, substr, len)==0 &&
+ len >= swp->minchars)) {
optno = 0;
/* next switch */
if ((sp = (&swp[1])->sw)) {