summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-07-27 02:43:22 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-07-27 02:43:22 +0000
commit0f7c1dda222d583212b8be2febe95ce7e1c0ba24 (patch)
tree9bf4475c55fd2e7233f13bd45698b7063cb85519
parent605a89493e971f653413b06eda4bbca75029072b (diff)
downloadsamba-0f7c1dda222d583212b8be2febe95ce7e1c0ba24.tar.gz
samba-0f7c1dda222d583212b8be2febe95ce7e1c0ba24.tar.xz
samba-0f7c1dda222d583212b8be2febe95ce7e1c0ba24.zip
If we strupper_m after the alpha_strcpy() we know that it is less likaly
to contain multibyte charcters, as these should have been stripped. Andrew Bartlett
-rw-r--r--source/lib/substitute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/substitute.c b/source/lib/substitute.c
index ac2cf687c49..c0d0096806a 100644
--- a/source/lib/substitute.c
+++ b/source/lib/substitute.c
@@ -58,8 +58,8 @@ void set_local_machine_name(const char* local_name, BOOL perm)
fstrcpy(tmp_local_machine,local_name);
trim_string(tmp_local_machine," "," ");
- strlower_m(tmp_local_machine);
alpha_strcpy(local_machine,tmp_local_machine,SAFE_NETBIOS_CHARS,sizeof(local_machine)-1);
+ strlower_m(local_machine);
}
/**
@@ -80,8 +80,8 @@ void set_remote_machine_name(const char* remote_name, BOOL perm)
fstrcpy(tmp_remote_machine,remote_name);
trim_string(tmp_remote_machine," "," ");
- strlower_m(tmp_remote_machine);
alpha_strcpy(remote_machine,tmp_remote_machine,SAFE_NETBIOS_CHARS,sizeof(remote_machine)-1);
+ strlower_m(remote_machine);
}
const char* get_remote_machine_name(void)