On 24/04/2009 Russ Allbery wrote:
> Jonas Meurer <jo...@freesources.org> writes:
> 
> > But in that case I've a simple question: if I put both defines into a
> > seperate c source file strl___.c, how do I teach the autotools to use
> > this file when compiling nntp.cpp, pop.cpp and uuencode.cpp?
> 
> AC_REPLACE_FUNCS([strlcpy strlcat]) in configure.ac and then include
> LTLIBOBJS in the list of objects that go into the shared library in your
> Makefile.am.

Ok, thanks for the pointers. But I just saw that one of the countless
mimelib tarballs that you find in the web already uses strncat in a
secure manner. It santizes the size given to strncat properly to make
buffer overflows impossible. Thus I decided to go that way.

Thanks a lot anyway for your help.

I updated the package sources at http://people.debian.org/~mejo/mimelib/

greetings,
 jonas


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to