Re: [Exim] 4.12 bug-fix release

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Nico Erfurth
CC: exim-users
Sujet: Re: [Exim] 4.12 bug-fix release
On Wed, 18 Dec 2002, Nico Erfurth wrote:

> Just beeing curious, what's the reason for doing:
>
> int c = Ustrncmp(name, lookup_list[mid].name, len);
> if (c == 0 && Ustrlen(lookup_list[mid].name) == len)
>
> this in search_findtype?
>
> Instead of just
> int c = Ustrcmp(name, lookup_list[mid].name);


Read the comments in the code! In particular, this line:

  name       lookup type name - not necessarily zero terminated (e.g. dbm*)


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.