Re: [Exim] 4.12 bug-fix release

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Nico Erfurth
CC: exim-users
Subject: 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.