summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-06-23 07:41:16 +0000
committerJeremy Allison <jra@samba.org>2001-06-23 07:41:16 +0000
commit2bcd75d9052d82006db4df11c5d837004cf775b4 (patch)
tree81079c4afb0d2b681e0b53d1e0acc669d0b5f952 /source/smbd/reply.c
parent7339b53fbea780cf708a8bef985907dbbcedb02b (diff)
downloadsamba-2bcd75d9052d82006db4df11c5d837004cf775b4.tar.gz
samba-2bcd75d9052d82006db4df11c5d837004cf775b4.tar.xz
samba-2bcd75d9052d82006db4df11c5d837004cf775b4.zip
Added other_safe_chars to alpha_strcpy(). Better fix for 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 cd1db2818fc..a601412df19 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -97,7 +97,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);
@@ -107,7 +107,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 ---