summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-07-15 23:05:13 +0200
committerGünther Deschner <gd@samba.org>2008-07-15 23:06:48 +0200
commit1939177582867fb54a416f3ea979ebd8d4335885 (patch)
tree0b8c9ac291e612f44062171eebc015cbf8614bdd /source3/libsmb
parent730678c73177474ef8614f979661d9f6119a61f4 (diff)
downloadsamba-1939177582867fb54a416f3ea979ebd8d4335885.tar.gz
samba-1939177582867fb54a416f3ea979ebd8d4335885.tar.bz2
samba-1939177582867fb54a416f3ea979ebd8d4335885.zip
fix build warning.
Guenther (This used to be commit 507660706901a79544d436046127947e4baa7e52)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clirap2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/libsmb/clirap2.c b/source3/libsmb/clirap2.c
index 9cc8110576..a15fa5f7d8 100644
--- a/source3/libsmb/clirap2.c
+++ b/source3/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);