git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ce1ae86
)
Minor change to bring smbmount in the main branch in line with some bzero
author
Michael Warfield
<mhw@samba.org>
Mon, 1 Feb 1999 22:01:29 +0000
(22:01 +0000)
committer
Michael Warfield
<mhw@samba.org>
Mon, 1 Feb 1999 22:01:29 +0000
(22:01 +0000)
to memset changes...
source/client/smbmount.c
patch
|
blob
|
history
diff --git
a/source/client/smbmount.c
b/source/client/smbmount.c
index 3c2d2074986ee61e48bf3d7fb9ca160da1dda0e0..00331f36819e1518d9bb1b58b1337870d295dc79 100644
(file)
--- a/
source/client/smbmount.c
+++ b/
source/client/smbmount.c
@@
-149,7
+149,7
@@
static BOOL chkpath(char *path,BOOL report)
trim_string(path2,NULL,"\\");
if (!*path2) *path2 = '\\';
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);
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);
if ((InBuffer == NULL) || (OutBuffer == NULL))
return(False);
-
bzero(OutBuffer
,smb_size);
+
memset(OutBuffer,'\0'
,smb_size);
if (!mount_send_login(InBuffer,OutBuffer))
return(False);
if (!mount_send_login(InBuffer,OutBuffer))
return(False);
@@
-583,7
+583,7
@@
static BOOL process(char *base_directory)
fstring tok;
int i;
fstring tok;
int i;
-
bzero(OutBuffer
,smb_size);
+
memset(OutBuffer,'\0'
,smb_size);
/* display a prompt */
DEBUG(0,("smb: %s> ", CNV_LANG(cur_dir)));
/* display a prompt */
DEBUG(0,("smb: %s> ", CNV_LANG(cur_dir)));