Re: questions regarding libmimelib1 as seperate source package
On 24/04/2009 Russ Allbery wrote:
> Jonas Meurer <jonas@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
Reply to: