CVS update: samba/source/netlogond

Luke Kenneth Casson Leighton lkcl at samba.org
Mon Jan 17 02:24:44 EST 2000


On Sun, 16 Jan 2000, Andrew Tridgell wrote:

> 
> Date:	Sunday January 16, 2000 @ 19:27
> Author:	tridge
> 
> Update of /data/cvs/samba/source/netlogond
> In directory samba:/tmp/cvs-serv12457
> 
> Modified Files:
>       Tag: SAMBA_TNG
> 	creds_db.c 
> Log Message:
> fixed a couple of off by one bugs (one place was 1 too long and the
> other was 1 too short)

ah!  *dur* thx!
 
> Luke, you only add 1 to the length if its a string! 

oh.  ok.  i cut/paste it from tdbtest.c, it had a +1 in there so i used
that, i thought it was part of the requirements for tdb_store().

so, the key routines and data routines both store exactly the number of
bytes specified, so if it's a string, you need to store the null-char.
okie.



More information about the samba-cvs mailing list