summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-16 17:55:37 +0100
committerVolker Lendecke <vlendec@samba.org>2011-03-16 18:52:18 +0100
commit7bb76bc7c794e22d564375343946907323406c65 (patch)
tree965907610e18ac26455523c8e0456c443d2f6f5b /source3
parentdf79b3ba763ffb00f5de3e4084a2e639cfb48165 (diff)
downloadsamba-7bb76bc7c794e22d564375343946907323406c65.tar.gz
samba-7bb76bc7c794e22d564375343946907323406c65.tar.bz2
samba-7bb76bc7c794e22d564375343946907323406c65.zip
s3: Fix Coverity ID 2100, BAD_SIZEOF
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 16 18:52:18 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_misc.c b/source3/winbindd/winbindd_misc.c
index 42ecea2aad..7d2516770b 100644
--- a/source3/winbindd/winbindd_misc.c
+++ b/source3/winbindd/winbindd_misc.c
@@ -319,7 +319,7 @@ void winbindd_dc_info(struct winbindd_cli_state *cli)
struct winbindd_domain *domain;
char *dc_name, *dc_ip;
- cli->request->domain_name[sizeof(cli->request->domain_name-1)] = '\0';
+ cli->request->domain_name[sizeof(cli->request->domain_name)-1] = '\0';
DEBUG(3, ("[%5lu]: domain_info [%s]\n", (unsigned long)cli->pid,
cli->request->domain_name));