summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-02-23 22:29:27 +0000
committerJeremy Allison <jra@samba.org>2000-02-23 22:29:27 +0000
commit1f28a345526908214240f36942c3a58e1f7bd138 (patch)
tree281b59f4079236fa65edc32c4959ad0e8fe05941 /source3
parent9db96b7646aa36aa5b4ff309419235fe20bef78a (diff)
downloadsamba-1f28a345526908214240f36942c3a58e1f7bd138.tar.gz
samba-1f28a345526908214240f36942c3a58e1f7bd138.tar.bz2
samba-1f28a345526908214240f36942c3a58e1f7bd138.zip
Multiple-dot scope handling fix from Greg Bowering gb@pobox.com
Jeremy. (This used to be commit 693a582c23599bbdd45adb30401b1162e44fd274)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/nmblib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c
index b83081d7f0..7b62ca4546 100644
--- a/source3/libsmb/nmblib.c
+++ b/source3/libsmb/nmblib.c
@@ -301,8 +301,8 @@ static int put_nmb_name(char *buf,int offset,struct nmb_name *name)
p = &buf[offset+1];
while ((p = strchr(p,'.'))) {
- buf[offset] = PTR_DIFF(p,&buf[offset]);
- offset += buf[offset];
+ buf[offset] = PTR_DIFF(p,&buf[offset+1]);
+ offset += (buf[offset] + 1);
p = &buf[offset+1];
}
buf[offset] = strlen(&buf[offset+1]);