From 0375dace248eb3dc660fa2bca2808552e502b3f7 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Fri, 12 Mar 2004 21:35:15 +0000 Subject: 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? --- source/libsmb/nmblib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libsmb/nmblib.c b/source/libsmb/nmblib.c index ff38245435d..d0ea57dc1ce 100644 --- a/source/libsmb/nmblib.c +++ b/source/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] == '.') { -- cgit