1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

if we are truncating to the . we need to start at the beginning in case

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?
(This used to be commit 0375dace24)
This commit is contained in:
Herb Lewis 2004-03-12 21:35:15 +00:00
parent 95fee5e3bf
commit 220d663b74

View File

@ -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] == '.')
{