s3: Fix Coverity ID 2100, BAD_SIZEOF
[samba.git] / source3 / winbindd / winbindd_misc.c
index 42ecea2aad705efc76186eca443b90915564c841..7d2516770bc1859a1cb0da876964aeaf2550731b 100644 (file)
@@ -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));