]> git.marmaro.de Git - mmh/blobdiff - sbr/print_sw.c
Moved etcpath() from config/config.c to sbr/path.c
[mmh] / sbr / print_sw.c
index 6f0c9816287e4357b3ec072474567032815b5eb5..7924fbc7b190d61a3e75591bb6e81a51a195067f 100644 (file)
@@ -20,7 +20,7 @@ print_sw(char *substr, struct swit *swp, char *prefix, FILE *fp)
        len = strlen(substr);
        for (; swp->sw; swp++) {
                /* null matches all strings */
-               if (!*substr || (ssequal(substr, swp->sw) && len >= swp->minchars)) {
+               if (!*substr || (isprefix(substr, swp->sw) && len >= swp->minchars)) {
                        optno = 0;
                        /* next switch */
                        if ((sp = (&swp[1])->sw)) {