CVS update: samba/source/auth

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

On Wed, 2003-07-23 at 22:33, jerry at wrote:
> Date:	Wed Jul 23 12:33:57 2003
> Author:	jerry
> Update of /data/cvs/samba/source/auth
> In directory
> 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

Andrew Bartlett

Andrew Bartlett                                 abartlet at
Manager, Authentication Subsystems, Samba Team  abartlet at
Student Network Administrator, Hawker College   abartlet at
-------------- 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 :

More information about the samba-technical mailing list