git.samba.org
/
tprouty
/
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:
29909ce
)
if we are truncating to the . we need to start at the beginning in case
author
Herb Lewis
<herb@samba.org>
Fri, 12 Mar 2004 21:35:15 +0000
(21:35 +0000)
committer
Herb Lewis
<herb@samba.org>
Fri, 12 Mar 2004 21:35:15 +0000
(21:35 +0000)
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
patch
|
blob
|
history
diff --git
a/source/libsmb/nmblib.c
b/source/libsmb/nmblib.c
index ff38245435dcbb09753488d6a97a7cd3a46c179b..d0ea57dc1ce9e3daa21fbface35090b0d6989831 100644
(file)
--- 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] == '.')
{