diff options
-rw-r--r-- | source4/lib/cmdline/popt_credentials.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/cmdline/popt_credentials.c b/source4/lib/cmdline/popt_credentials.c index d037cfd7c4..4a85fc5407 100644 --- a/source4/lib/cmdline/popt_credentials.c +++ b/source4/lib/cmdline/popt_credentials.c @@ -86,7 +86,7 @@ static void popt_common_credentials_callback(poptContext con, case OPT_PASSWORD: cli_credentials_set_password(cmdline_credentials, arg, CRED_SPECIFIED); /* Try to prevent this showing up in ps */ - memset(arg,0,strlen(arg)); + memset(discard_const(arg),0,strlen(arg)); break; case 'A': |