Re: [Exim] Another small patch, please comment

Top Page
Delete this message
Reply to this message
Author: michael
Date:  
To: exim-users
Subject: Re: [Exim] Another small patch, please comment
> You are right in that Exim works with C-style strings that cannot
> contain NUL characters, and so Nico is right in that strictly the
> functions should therefore be called "strsomething". The reason there is
> a length parameter on the string_cat() function is so that it can be
> used to pick out substrings.


Actually, Exim does not seem to need the NUL at many places, with
printf() functions being an exception, otherwise string_cat() would
append a trailing NUL in all cases. I know strncpy doesn't do that,
but it works on fixed size arrays, unlike the Exim string functions.

While talking about it: Does Exim never free memory? I know the processes
are short lived, so there is no long-term leak, but it still looks odd
to me.

Michael