summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2004-05-18 20:48:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:37 -0500
commit84cea46162d6328c2e3bc0166f5b27a0fa01b3f9 (patch)
tree81f44c5391d9b269b50a933083b57469980af64b
parentbb8a4a7991a04e16765f68e5cb770617d086e3d8 (diff)
downloadsamba-84cea46162d6328c2e3bc0166f5b27a0fa01b3f9.tar.gz
samba-84cea46162d6328c2e3bc0166f5b27a0fa01b3f9.tar.bz2
samba-84cea46162d6328c2e3bc0166f5b27a0fa01b3f9.zip
r776: I should have just cut and pasted from my build area and I would
have gotten this right :-) (This used to be commit 548070274efa12f8c9a4404145d8a2a8c85387b3)
-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 51a5671144..d883c5308d 100644
--- a/source3/libsmb/nmblib.c
+++ b/source3/libsmb/nmblib.c
@@ -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;