Commit 3d266601 3d266601df7be584da838bca1f276c4ed92f3c65 by Sergey Poznyakoff

mh: minor fix in traditional option handler

* mh/mh_getopt.c (mh_option_init): Enforce the compited minlen
on each option which begins on the same letter as the sample.
1 parent 52c4656f
......@@ -192,6 +192,8 @@ mh_option_init (struct mh_option *opt)
break;
}
while (len >= minlen && memcmp (opt[j].opt, sample, minlen) == 0);
else if (opt[j].opt[0] == sample[0])
opt[j].match_len = minlen;
else
break;
}
......