samba-cvs.cvs
[Top] [All Lists]

svn commit: samba r13618 - in branches/SAMBA_4_0/source/lib/cmdline: .

Subject: svn commit: samba r13618 - in branches/SAMBA_4_0/source/lib/cmdline: .
From:
Date: Wed, 22 Feb 2006 09:48:35 +0000 GMT
Author: metze
Date: 2006-02-22 09:48:35 +0000 (Wed, 22 Feb 2006)
New Revision: 13618

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13618

Log:
fix compiler warning

metze

Modified:
   branches/SAMBA_4_0/source/lib/cmdline/popt_credentials.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/cmdline/popt_credentials.c
===================================================================
--- branches/SAMBA_4_0/source/lib/cmdline/popt_credentials.c    2006-02-22 
09:48:13 UTC (rev 13617)
+++ branches/SAMBA_4_0/source/lib/cmdline/popt_credentials.c    2006-02-22 
09:48:35 UTC (rev 13618)
@@ -86,7 +86,7 @@
        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':

<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: samba r13618 - in branches/SAMBA_4_0/source/lib/cmdline: ., metze <=