X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fprint_sw.c;h=7924fbc7b190d61a3e75591bb6e81a51a195067f;hb=b4c29794c12099556151d93a860ee51badae2e35;hp=6f0c9816287e4357b3ec072474567032815b5eb5;hpb=714b5c530ece27ea2835a313013f5b770163403c;p=mmh diff --git a/sbr/print_sw.c b/sbr/print_sw.c index 6f0c981..7924fbc 100644 --- a/sbr/print_sw.c +++ b/sbr/print_sw.c @@ -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)) {