From 8fdc846070011a84e6e68ee2f89bbc1852602535 Mon Sep 17 00:00:00 2001 From: Michael Warfield Date: Mon, 1 Feb 1999 22:01:29 +0000 Subject: Minor change to bring smbmount in the main branch in line with some bzero to memset changes... (This used to be commit 1cb8fcb33bb9e930d8f3cba4cc1ba5aa880c5f8e) --- source3/client/smbmount.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/client/smbmount.c b/source3/client/smbmount.c index 3c2d207498..00331f3681 100644 --- a/source3/client/smbmount.c +++ b/source3/client/smbmount.c @@ -149,7 +149,7 @@ static BOOL chkpath(char *path,BOOL report) trim_string(path2,NULL,"\\"); if (!*path2) *path2 = '\\'; - bzero(outbuf,smb_size); + memset(outbuf,'\0',smb_size); set_message(outbuf,0,4 + strlen(path2),True); SCVAL(outbuf,smb_com,SMBchkpth); SSVAL(outbuf,smb_tid,cnum); @@ -536,7 +536,7 @@ static BOOL process(char *base_directory) if ((InBuffer == NULL) || (OutBuffer == NULL)) return(False); - bzero(OutBuffer,smb_size); + memset(OutBuffer,'\0',smb_size); if (!mount_send_login(InBuffer,OutBuffer)) return(False); @@ -583,7 +583,7 @@ static BOOL process(char *base_directory) fstring tok; int i; - bzero(OutBuffer,smb_size); + memset(OutBuffer,'\0',smb_size); /* display a prompt */ DEBUG(0,("smb: %s> ", CNV_LANG(cur_dir))); -- cgit