diff options
author | Jeremy Allison <jra@samba.org> | 2001-06-23 07:22:16 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-06-23 07:22:16 +0000 |
commit | e059fffd03a1382fb2b7059b6de369d9fc765a17 (patch) | |
tree | 71f2ff9c1cb6ce1a492f4d50aeaf06f439219608 /source/smbd/reply.c | |
parent | 17c3faa367328d186d10f59f08549de0c608b16a (diff) | |
download | samba-e059fffd03a1382fb2b7059b6de369d9fc765a17.tar.gz samba-e059fffd03a1382fb2b7059b6de369d9fc765a17.tar.xz samba-e059fffd03a1382fb2b7059b6de369d9fc765a17.zip |
Added other_safe_chars to alpha_strcpy(). Needs testing but is a better
fix for the problem.
Jeremy.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r-- | source/smbd/reply.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 0c40e5f2b3a..da4659dfa15 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 --- |