From 5b24e783dd60b01e2cef1e47cc4b181e7cf2bc38 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 3 Oct 2001 03:05:55 +0000 Subject: Fixup insure changes for rpcclient. Jeremy. (This used to be commit 4fdd45f3ccde89e2ed022f7bfd91c225af6f161b) --- source3/rpcclient/rpcclient.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source3/rpcclient') 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); -- cgit