On Friday 02 April 2010 17:18, Bernhard Reutner-Fischer wrote: > On Fri, Apr 02, 2010 at 08:10:44AM +0200, Denys Vlasenko wrote: > >On Thursday 18 March 2010 12:27, Bernhard Reutner-Fischer wrote: > >> untested > > >This prefers longer matches: "foo" = "foobarbaz" preferred > >over "foo" = "foobar". Don't see why it should be this way. > >More logical is to return -1, since the match is ambiguous in this case. > > > >You calculate strlen(strings) twice. > > >How about this patch? > > yes, what i ment to say :) please install
Added. -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
