CVS update: samba/source/auth

Andrew Bartlett abartlet at samba.org
Wed Jul 23 22:52:48 GMT 2003


On Wed, 2003-07-23 at 22:33, jerry at samba.org wrote:
> Date:	Wed Jul 23 12:33:57 2003
> Author:	jerry
> 
> Update of /data/cvs/samba/source/auth
> In directory dp.samba.org:/tmp/cvs-serv22586/auth
> 
> Modified Files:
>       Tag: SAMBA_3_0
> 	auth_domain.c 
> Log Message:
> convert snprintf() calls using pstrings & fstrings
> to pstr_sprintf() and fstr_sprintf() to try to standardize.
> lots of snprintf() calls were using len-1; some were using 
> len.  At least this helps to be consistent.

The only problem with not using sizeof() is that we end up (over time)
doing pstr_sprintf() into an fstring...

We need to add some more macros to safe_string.h to do the checking. (in
the same way we already compile-assert on most fstrcpy/pstrcpy bugs for
example)

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-technical/attachments/20030723/77f6a0e5/attachment.bin


More information about the samba-technical mailing list