r776: I should have just cut and pasted from my build area and I would
authorHerb Lewis <herb@samba.org>
Tue, 18 May 2004 20:48:14 +0000 (20:48 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:51:37 +0000 (10:51 -0500)
have gotten this right :-)
(This used to be commit 548070274efa12f8c9a4404145d8a2a8c85387b3)

source3/libsmb/nmblib.c

index 51a56711440bda23b0a0f14b61f65024f5e53121..d883c5308d39086292e34876f7d6b28939eff80e 100644 (file)
@@ -1167,7 +1167,7 @@ char *dns_to_netbios_name(const 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 = 0; i < 15; i--) {
+       for (i = 0; i < 15; i++) {
                if (netbios_name[i] == '.') {
                        netbios_name[i] = 0;
                        break;