[Samba] snprintf, vsnprintf

Andrew Bartlett abartlet at samba.org
Thu Jun 26 06:38:14 GMT 2003


On Thu, 2003-06-26 at 10:23, William Jojo wrote:
> 
> 
> 
> 
> On Wed, 25 Jun 2003, William Jojo wrote:
> 
> > 
> > anyway the bug i'm tracking is a failure to expand the macros SAFE_FREE
> > and VA_COPY. is compiles fine in AIX 5.1. as soon as i figure that one
> > out, i'll forward it.
> > 
> 
> 
> found it. you are penalized in snprintf.c if you have all three of
> HAVE_SNPRINTF, HAVE_VSNPRINTF and HAVE_C99_VSNPRINTF by what i believe is
> an unnecessary else clause. It will include stdio.h, but will not define
> SAFE_FREE and VA_COPY.
> 
> AIX 5.1 does not have vsnprintf so it compiles there.
> 
> I think this is what the change should be - pardon my misuse if diff, i
> would like to know the correct format for submitting patches, but could
> not find it during my short search of the site.

diff -u would make this legible.

Also, what version was this against?  

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20030626/ae90a57e/attachment.bin


More information about the samba mailing list