Fix spelling errors, including binaries ones
[mmh] / sbr / print_sw.c
index 7924fbc..02d00bc 100644 (file)
@@ -13,14 +13,15 @@ void
 print_sw(char *substr, struct swit *swp, char *prefix, FILE *fp)
 {
        int len, optno;
-       register int i;
-       register char *cp, *cp1, *sp;
+       int i;
+       char *cp, *cp1, *sp;
        char buf[128];
 
        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)) {