diff options
author | Günther Deschner <gd@samba.org> | 2008-07-15 23:05:13 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-07-15 23:06:48 +0200 |
commit | 1939177582867fb54a416f3ea979ebd8d4335885 (patch) | |
tree | 0b8c9ac291e612f44062171eebc015cbf8614bdd /source3/libsmb/clirap2.c | |
parent | 730678c73177474ef8614f979661d9f6119a61f4 (diff) | |
download | samba-1939177582867fb54a416f3ea979ebd8d4335885.tar.gz |
fix build warning.
Guenther
(This used to be commit 507660706901a79544d436046127947e4baa7e52)
Diffstat (limited to 'source3/libsmb/clirap2.c')
-rw-r--r-- | source3/libsmb/clirap2.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/libsmb/clirap2.c b/source3/libsmb/clirap2.c index 9cc81105762..a15fa5f7d80 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); |