diff options
author | Jeremy Allison <jra@samba.org> | 2001-10-03 03:05:55 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-10-03 03:05:55 +0000 |
commit | 5b24e783dd60b01e2cef1e47cc4b181e7cf2bc38 (patch) | |
tree | cb6315332c958280e3993f3db8fff198755de9aa /source3/rpcclient | |
parent | 4cfeacd871df9cedc63f3bbb9961516fbe4c9ca4 (diff) | |
download | samba-5b24e783dd60b01e2cef1e47cc4b181e7cf2bc38.tar.gz samba-5b24e783dd60b01e2cef1e47cc4b181e7cf2bc38.tar.bz2 samba-5b24e783dd60b01e2cef1e47cc4b181e7cf2bc38.zip |
Fixup insure changes for rpcclient.
Jeremy.
(This used to be commit 4fdd45f3ccde89e2ed022f7bfd91c225af6f161b)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index a9998dd97d..a5fb42796b 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -655,9 +655,8 @@ static void usage(void) return 0; } - if (strncmp("//", argv[0], 2) == 0 || - strncmp("\\\\", argv[0], 2) == 0) - argv[0] += 2; + if (strncmp("//", argv[0], 2) == 0 || strncmp("\\\\", argv[0], 2) == 0) + argv[0] += 2; pstrcpy(server, argv[0]); @@ -696,7 +695,7 @@ static void usage(void) else { init_rpcclient_creds (&creds, username, domain, password); } - memset(password,'X',strlen(password)); + memset(password,'X',sizeof(password)); /* open a connection to the specified server */ ZERO_STRUCTP (&cli); |