summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2004-03-12 21:35:15 +0000
committerHerb Lewis <herb@samba.org>2004-03-12 21:35:15 +0000
commit220d663b744107e03a278b564f4e00712a6fcffe (patch)
tree21f8099dfc5c96832375feb889a7f00ebeb639dd /source3/libsmb
parent95fee5e3bf509eee1a546ebdd23f6bdfd0cf7a20 (diff)
downloadsamba-220d663b744107e03a278b564f4e00712a6fcffe.tar.gz
samba-220d663b744107e03a278b564f4e00712a6fcffe.tar.bz2
samba-220d663b744107e03a278b564f4e00712a6fcffe.zip
if we are truncating to the . we need to start at the beginning in case
there are multiple "."'s in the name. This code is protected with an #ifdef TRUNCATE_NETBIOS_NAME and this is #define'd to 1 directly above. Should we also get rid of the #ifdef? (This used to be commit 0375dace248eb3dc660fa2bca2808552e502b3f7)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/nmblib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c
index ff38245435..d0ea57dc1c 100644
--- a/source3/libsmb/nmblib.c
+++ b/source3/libsmb/nmblib.c
@@ -1116,7 +1116,7 @@ char *dns_to_netbios_name(char *dns_name)
netbios name up to and including the '.' this even applies, by
mistake, to workgroup (domain) names, which is _really_ daft.
*/
- for (i = 15; i >= 0; i--)
+ for (i = 0; i >= 15; i--)
{
if (netbios_name[i] == '.')
{