git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
97b2a6f
)
r5398: fixed encoding of *SMBSERVER name (thanks to Karl Melcher for spotting this)
author
Andrew Tridgell
<tridge@samba.org>
Mon, 14 Feb 2005 23:36:42 +0000
(23:36 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:09:51 +0000
(13:09 -0500)
(This used to be commit
76c49851b921c137c59c45084c5dab95f1c16f58
)
source4/libcli/nbt/nbtname.c
patch
|
blob
|
history
diff --git
a/source4/libcli/nbt/nbtname.c
b/source4/libcli/nbt/nbtname.c
index 6713c902850ba101603bd38e056f6375f5425dac..fc87c2f4b227710199b3eba63d0039b352989b93 100644
(file)
--- a/
source4/libcli/nbt/nbtname.c
+++ b/
source4/libcli/nbt/nbtname.c
@@
-133,7
+133,7
@@
static uint8_t *compress_name(TALLOC_CTX *mem_ctx,
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 = ' ';