[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-3242-g5076607

Günther Deschner gd at samba.org
Tue Jul 15 21:07:54 GMT 2008


The branch, v3-3-test has been updated
       via  507660706901a79544d436046127947e4baa7e52 (commit)
      from  7a7bddd75413dba3c0c43fab68a115cf0445f12b (commit)

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


- Log -----------------------------------------------------------------
commit 507660706901a79544d436046127947e4baa7e52
Author: Günther Deschner <gd at samba.org>
Date:   Tue Jul 15 23:05:13 2008 +0200

    fix build warning.
    
    Guenther

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

Summary of changes:
 source/libsmb/clirap2.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/clirap2.c b/source/libsmb/clirap2.c
index 9cc8110..a15fa5f 100644
--- a/source/libsmb/clirap2.c
+++ b/source/libsmb/clirap2.c
@@ -1856,6 +1856,7 @@ bool cli_NetWkstaUserLogoff(struct cli_state *cli, const char *user, const char
 			+WORDSIZE];                         /* buffer size?  */
 	char upperbuf[MAX(RAP_USERNAME_LEN,RAP_MACHNAME_LEN)];
 	int res = -1;
+	char *tmp = NULL;
 
 	memset(param, 0, sizeof(param));
 
@@ -1866,11 +1867,13 @@ bool cli_NetWkstaUserLogoff(struct cli_state *cli, const char *user, const char
 	PUTDWORD(p, 0); /* Null pointer */
 	strlcpy(upperbuf, user, sizeof(upperbuf));
 	strupper_m(upperbuf);
-	PUTSTRINGF(p, upperbuf, RAP_USERNAME_LEN);
+	tmp = upperbuf;
+	PUTSTRINGF(p, tmp, RAP_USERNAME_LEN);
 	p++; /* strange format, but ok */
 	strlcpy(upperbuf, workstation, sizeof(upperbuf));
 	strupper_m(upperbuf);
-	PUTSTRINGF(p, upperbuf, RAP_MACHNAME_LEN);
+	tmp = upperbuf;
+	PUTSTRINGF(p, tmp, RAP_MACHNAME_LEN);
 	PUTWORD(p, CLI_BUFFER_SIZE);
 	PUTWORD(p, CLI_BUFFER_SIZE);
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list