diff options
author | Jeremy Allison <jra@samba.org> | 2004-03-13 02:47:19 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-03-13 02:47:19 +0000 |
commit | 309c0a65b7de7311a5032d6a8e41c9eb039af2aa (patch) | |
tree | 58d6944a70a1db7c5740512402fa97121dbced56 /source3/nmbd/nmbd_browsesync.c | |
parent | 9a699d74efbcbbb8607c7dea2734d7acb3478896 (diff) | |
download | samba-309c0a65b7de7311a5032d6a8e41c9eb039af2aa.tar.gz samba-309c0a65b7de7311a5032d6a8e41c9eb039af2aa.tar.bz2 samba-309c0a65b7de7311a5032d6a8e41c9eb039af2aa.zip |
Ensure we don't truncate strcmps to nstring anymore...
Jeremy.
(This used to be commit b3aff7f214da97925690a5d0a887ea1b336d107a)
Diffstat (limited to 'source3/nmbd/nmbd_browsesync.c')
-rw-r--r-- | source3/nmbd/nmbd_browsesync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd_browsesync.c b/source3/nmbd/nmbd_browsesync.c index 454c349767..f16d8603c9 100644 --- a/source3/nmbd/nmbd_browsesync.c +++ b/source3/nmbd/nmbd_browsesync.c @@ -639,14 +639,14 @@ void sync_all_dmbs(time_t t) /* count how many syncs we might need to do */ for (work=unicast_subnet->workgrouplist; work; work = work->next) { - if (strncmp(lp_workgroup(), work->work_group, sizeof(nstring))) { + if (strcmp(lp_workgroup(), work->work_group)) { count++; } } /* sync with a probability of 1/count */ for (work=unicast_subnet->workgrouplist; work; work = work->next) { - if (strncmp(lp_workgroup(), work->work_group, sizeof(nstring))) { + if (strcmp(lp_workgroup(), work->work_group)) { fstring dmb_name; if (((unsigned)sys_random()) % count != 0) |