svn commit: samba r5398 - in branches/SAMBA_4_0/source/libcli/nbt: .

tridge at samba.org tridge at samba.org
Mon Feb 14 23:36:42 GMT 2005


Author: tridge
Date: 2005-02-14 23:36:42 +0000 (Mon, 14 Feb 2005)
New Revision: 5398

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5398

Log:
fixed encoding of *SMBSERVER name (thanks to Karl Melcher for spotting this)

Modified:
   branches/SAMBA_4_0/source/libcli/nbt/nbtname.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/nbt/nbtname.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/nbt/nbtname.c	2005-02-14 12:46:03 UTC (rev 5397)
+++ branches/SAMBA_4_0/source/libcli/nbt/nbtname.c	2005-02-14 23:36:42 UTC (rev 5398)
@@ -133,7 +133,7 @@
 		cname[2*i]   = 'A' + (name[i]>>4);
 		cname[1+2*i] = 'A' + (name[i]&0xF);
 	}
-	if (name[0] == '*') {
+	if (strcmp(name, "*") == 0) {
 		pad_char = 0;
 	} else {
 		pad_char = ' ';



More information about the samba-cvs mailing list