diff options
author | Jeremy Allison <jra@samba.org> | 2001-06-23 00:20:03 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-06-23 00:20:03 +0000 |
commit | c0782c1a365a26ebba584539cd58cd28304f76f1 (patch) | |
tree | 0f97c05e6ac72c04fe864272d351d1e902e60e6c /source/smbd/reply.c | |
parent | 7280d4c7cb43a6cfeb9e44c818950ae92966bd37 (diff) | |
download | samba-c0782c1a365a26ebba584539cd58cd28304f76f1.tar.gz samba-c0782c1a365a26ebba584539cd58cd28304f76f1.tar.xz samba-c0782c1a365a26ebba584539cd58cd28304f76f1.zip |
Better fix for remote name problem.
Jeremy.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r-- | source/smbd/reply.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 7add7efed30..38aab6db2ed 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -92,12 +92,13 @@ int reply_special(char *inbuf,char *outbuf) DEBUG(2,("netbios connect: name1=%s name2=%s\n", name1,name2)); - alpha_strcpy(remote_machine,name2,sizeof(remote_machine)-1); + fstrcpy(remote_machine,name2); remote_machine[15] = 0; trim_string(remote_machine," "," "); strlower(remote_machine); + alpha_strcpy(remote_machine,remote_machine,sizeof(remote_machine)-1); - alpha_strcpy(local_machine,name1,sizeof(local_machine)-1); + fstrcpy(local_machine,name1); len = strlen(local_machine); if (len == 16) { name_type = local_machine[15]; @@ -105,6 +106,7 @@ int reply_special(char *inbuf,char *outbuf) } trim_string(local_machine," "," "); strlower(local_machine); + alpha_strcpy(local_machine,local_machine,sizeof(local_machine)-1); if (name_type == 'R') { /* We are being asked for a pathworks session --- |