summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_user.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd_user.c b/source3/winbindd/winbindd_user.c
index da6a303e5d..5ab2f2b4a6 100644
--- a/source3/winbindd/winbindd_user.c
+++ b/source3/winbindd/winbindd_user.c
@@ -426,14 +426,12 @@ void winbindd_getpwnam(struct winbindd_cli_state *state)
fstring domname, username;
char *mapped_user = NULL;
char *domuser;
- size_t dusize;
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
domuser = state->request->data.username;
- dusize = sizeof(state->request->data.username);
/* Ensure null termination (it's an fstring) */
- domuser[dusize-1] = '\0';
+ domuser[sizeof(state->request->data.username)-1] = '\0';
DEBUG(3, ("[%5lu]: getpwnam %s\n",
(unsigned long)state->pid,