Re: [Exim] 4.12 bug-fix release

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Nico Erfurth
Cc: exim-users
Asunto: 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.