[SCM] Samba Shared Repository - branch v3-0-test updated - initial-v3-0-unstable-25-ge56ee68

Jeremy Allison jra at samba.org
Sun Nov 18 23:16:03 GMT 2007


The branch, v3-0-test has been updated
       via  e56ee680c34f77497a436b8021b51fe296bcc322 (commit)
      from  6d3734aa74ce68ca340640aa478ec920af578e1b (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-0-test


- Log -----------------------------------------------------------------
commit e56ee680c34f77497a436b8021b51fe296bcc322
Author: Jeremy Allison <jra at samba.org>
Date:   Sun Nov 18 15:06:53 2007 -0800

    Fix remaining calls to srvstr_push -1 - noticed
    by Simo (thanks !)
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source/smbd/sesssetup.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/sesssetup.c b/source/smbd/sesssetup.c
index 05a5962..058faed 100644
--- a/source/smbd/sesssetup.c
+++ b/source/smbd/sesssetup.c
@@ -68,9 +68,9 @@ static int add_signature(char *outbuf, char *p)
 
 	fstr_sprintf( lanman, "Samba %s", SAMBA_VERSION_STRING);
 
-	p += srvstr_push(outbuf, p, "Unix", -1, STR_TERMINATE);
-	p += srvstr_push(outbuf, p, lanman, -1, STR_TERMINATE);
-	p += srvstr_push(outbuf, p, lp_workgroup(), -1, STR_TERMINATE);
+	p += srvstr_push(outbuf, p, "Unix", BUFFER_SIZE - (p - outbuf), STR_TERMINATE);
+	p += srvstr_push(outbuf, p, lanman, BUFFER_SIZE - (p - outbuf), STR_TERMINATE);
+	p += srvstr_push(outbuf, p, lp_workgroup(), BUFFER_SIZE - (p - outbuf), STR_TERMINATE);
 
 	return PTR_DIFF(p, start);
 }


-- 
Samba Shared Repository


More information about the samba-cvs mailing list