summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-06-23 07:21:25 +0000
committerJeremy Allison <jra@samba.org>2001-06-23 07:21:25 +0000
commit2e7e09331a445117c52b007dba8a7093899a331d (patch)
treedfa67649422bf714ac8314ecb8779de95566d749 /source/smbd/reply.c
parentc0782c1a365a26ebba584539cd58cd28304f76f1 (diff)
downloadsamba-2e7e09331a445117c52b007dba8a7093899a331d.tar.gz
samba-2e7e09331a445117c52b007dba8a7093899a331d.tar.xz
samba-2e7e09331a445117c52b007dba8a7093899a331d.zip
Added "other_safe_chars" to alpha_strcpy(). Needs testing but is a better
API fix for the problem. Jeremy.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r--source/smbd/reply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 38aab6db2ed..7021e0231ed 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -96,7 +96,7 @@ int reply_special(char *inbuf,char *outbuf)
remote_machine[15] = 0;
trim_string(remote_machine," "," ");
strlower(remote_machine);
- alpha_strcpy(remote_machine,remote_machine,sizeof(remote_machine)-1);
+ alpha_strcpy(remote_machine,remote_machine,SAFE_NETBIOS_CHARS,sizeof(remote_machine)-1);
fstrcpy(local_machine,name1);
len = strlen(local_machine);
@@ -106,7 +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);
+ alpha_strcpy(local_machine,local_machine,SAFE_NETBIOS_CHARS,sizeof(local_machine)-1);
if (name_type == 'R') {
/* We are being asked for a pathworks session ---